watch_video.sh

This shell scripts calls the pull_video.py script to dumpt the video stream from the elfie into a Gstreamer pipe that plays the video in a window. The exact Gstreamer pipeline looks like this:
python ./pull_video.py |gst-launch-1.0 fdsrc fd=0 ! h264parse ! avdec_h264 ! xvimagesink sync=false

x-shellscript - 111.00 bytes - 07/09/2017 at 20:55

Download

send_joystick.py

This application controls the quadcopter from a USB gamepad (it works on a Logitech Dual Action but should work with other gamepads as well). It requires the pygame library to be installed. You must connect your computer to the wifi network of the quadcopter before running the app using Python: "python ./send_joystick.py".

x-python - 1.17 kB - 07/09/2017 at 20:42

Download

pull_video.py

This script connects to the JJRC elfie and starts dumping the raw h264 stream into the stdout. This can be piped into a .h264 file for offline playback or it can be piped to Gstreamer for playback (the exact Gstreamer sequence is provided as a separate shell script). You must connect your computer to the wifi network of the quadcopter before running the app using Python: "python ./pull_video.py".

x-python - 537.00 bytes - 07/09/2017 at 20:41

Download

demo.py

[THIS SCRIPT WAS ONE OF MY FIRST TEST AND IT IS POINTLESS AT THIS STAGE] Demo that turns the propellers on and off (takes about 30 seconds to complete the cycle). You must connect your computer to the wifi network of the quadcopter before running the app using Python: "python ./demo.py".

x-python - 1.74 kB - 02/01/2017 at 00:08

Download