Make better test for az map.

This commit is contained in:
Nick Foster 2012-10-10 18:19:22 -07:00
parent 2b572a2e05
commit 6cb59af3a5

View File

@ -214,11 +214,9 @@ class model_updater(threading.Thread):
for i in range(az_map_model.npoints): for i in range(az_map_model.npoints):
time.sleep(0.05) time.sleep(0.05)
if(self.model): if(self.model):
self.model.addRecord(i*360./az_map_model.npoints, 2000, random.randint(0,400)/4) for alt in self.model._altitudes:
self.model.addRecord(i*360./az_map_model.npoints, 10000, random.randint(0,400)/2) self.model.addRecord(i*360./az_map_model.npoints, alt, random.randint(0,az_map.maxrange)*alt / max(self.model._altitudes))
self.model.addRecord(i*360./az_map_model.npoints, 30000, random.randint(0,400)) self.done = True
else:
self.stop()
class Window(QtGui.QWidget): class Window(QtGui.QWidget):
def __init__(self): def __init__(self):