Advertisement
Guest User

Untitled

a guest
Jun 9th, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import olympe
  2. from olympe.messages.ardrone3.Piloting import TakeOff
  3.  
  4. drone = olympe.Drone("192.168.42.1")
  5. drone.connection()
  6. video_path = "~/drone_video/video_test.h264"
  7. try:
  8. 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')
  9. drone.set_streaming_output_files(h264_data_file='h264_data_file.h264')
  10. drone.start_video_streaming()
  11. drone.wait(40)
  12. drone.stop_video_streaming()
  13. except Exception as e:
  14. print(e)
  15. drone.disconnection()
  16. print("program finished")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement