You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/flight_replay.rst
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ We generate up to 100 waypoints for the vehicle with the following code:
70
70
print "Generating %s waypoints from replay..." % len(messages)
71
71
cmds = v.commands
72
72
cmds.clear()
73
+
v.flush()
73
74
for i in xrange(0, len(messages)):
74
75
pt = messages[i]
75
76
lat = pt['lat']
@@ -96,5 +97,7 @@ Source code
96
97
97
98
The full source code at documentation build-time is listed below (`current version on github <https://github.com/diydrones/dronekit-python/blob/master/examples/flight_replay/flight_replay.py>`_):
0 commit comments