diff --git a/Drone/play_animation.py b/Drone/play_animation.py index 6b87331..1651f62 100644 --- a/Drone/play_animation.py +++ b/Drone/play_animation.py @@ -65,7 +65,8 @@ if __name__ == '__main__': read_animation_file() - takeoff() + first_frame = get_frames()[0] + takeoff(round(float(first_frame['x']), 4), round(float(first_frame['y']), 4), round(float(first_frame['z']), 4)) #FlightLib.reach() for frame in frames: time.sleep(0.1)