aboutsummaryrefslogtreecommitdiff
path: root/tools/test-generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-generator.py')
-rwxr-xr-xtools/test-generator.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/test-generator.py b/tools/test-generator.py
index 4beadc375..09fb65611 100755
--- a/tools/test-generator.py
+++ b/tools/test-generator.py
@@ -32,7 +32,6 @@ for i in range(0, len(waypoints)):
lon = lon1 + (lon2 - lon1) * j / count
points.append((lat, lon))
-#changed by Erez
def send(lat, lon, course, alarm):
params = (('id', id), ('timestamp', int(time.time())), ('lat', lat), ('lon', lon), ('bearing', course))
if alarm:
@@ -53,7 +52,7 @@ index = 0
while True:
(lat1, lon1) = points[index % len(points)]
(lat2, lon2) = points[(index + 1) % len(points)]
- alarm = ((index % 10) == 0)#added by Erez
+ alarm = False #((index % 10) == 0)
send(lat1, lon1, course(lat1, lon1, lat2, lon2), alarm)
time.sleep(period)
index += 1