Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import olympe
- from olympe.messages.ardrone3.Piloting import TakeOff
- drone = olympe.Drone("192.168.42.1")
- drone.connection()
- video_path = "~/drone_video/video_test.h264"
- try:
- set_streaming_callbacks(h264_data_cb='last_frame', h264_meta_cb='meta_cb', raw_data_cb='raw_data_cb', raw_meta_cb='raw_meta_cb')
- drone.set_streaming_output_files(h264_data_file='h264_data_file.h264')
- drone.start_video_streaming()
- drone.wait(40)
- drone.stop_video_streaming()
- except Exception as e:
- print(e)
- drone.disconnection()
- print("program finished")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement