Changed test animation file path

This commit is contained in:
Arthur
2019-02-26 17:28:55 +00:00
parent b85ecf1317
commit 7f7af0b2f7

View File

@@ -5,7 +5,7 @@ from FlightLib.FlightLib import FlightLib
#FlightLib.init('SingleCleverFlight')
from FlightLib.FlightLib import LedLib
animation_file_path = 'animation.csv'
animation_file_path = 'test_animation/test_1.csv'
frames = []
USE_LEDS = True
@@ -65,7 +65,7 @@ if __name__ == '__main__':
#takeoff(round(float(first_frame['x']), 4), round(float(first_frame['y']), 4), round(float(first_frame['z']), 4))
takeoff()
FlightLib.reach(x=frames[0]['x'], y=frames[0]['y'], z=frames[0]['z'])
for frame in frames:
rate.sleep()
do_next_animation(frame)
#for frame in frames:
# rate.sleep()
# do_next_animation(frame)
land()