I’ve been wanted to work on this for ages, and finally got around to it with the encouragement of Gus Whitehouse (thanks Gus!).
One of the key missing features with ArduPilot on the disco has been the lack of a way to control video recording and streaming and taking of still photos with an R/C controller. I opened a PR to fix that today:
The approach I took is to allow arbitrary shell scripting commands to be associated with GPIO values. This means you can connect shell script commands on Linux ports of ArduPilot with the existing relay support. As the Disco already has shell commands for video control it means that connecting R/C switches to control video becomes easy. How to try it
If you want to try it out then do the following:
I’ve done some test today of your script during 2h at home (2*1h) and nothing has failed.
I’ve use Qgroundcontrol with Video on udp 14550. Perfectly working stream with multiple start/stop hit rc control CH8. I didn’t check the photos and videos recorded on media but gpio.log file indicate RC control OK.
Sun Mar 17 19:43:49 UTC 2019 Starting recording
Sun Mar 17 19:43:56 UTC 2019 Stopping recording
Sun Mar 17 19:44:03 UTC 2019 Taking picture
Sun Mar 17 19:48:10 UTC 2019 Starting streaming to 192.168.42.75 8888
Sun Mar 17 19:48:44 UTC 2019 Stopping streaming to 192.168.42.75 8888
Sun Mar 17 19:48:46 UTC 2019 Starting streaming to 192.168.42.75 8888
Sun Mar 17 19:48:47 UTC 2019 Stopping streaming to 192.168.42.75 8888
Sun Mar 17 19:48:56 UTC 2019 Starting streaming to 192.168.42.75 8888
Sun Mar 17 19:48:57 UTC 2019 Stopping streaming to 192.168.42.75 8888
Sun Mar 17 19:53:36 UTC 2019 Starting streaming to 192.168.42.75 8888
Sun Mar 17 19:53:37 UTC 2019 Stopping streaming to 192.168.42.75 8888
Sun Mar 17 19:53:37 UTC 2019 Taking picture
Sun Mar 17 19:53:37 UTC 2019 Starting recording
Sun Mar 17 19:53:38 UTC 2019 Stopping recording
Sun Mar 17 19:54:05 UTC 2019 Taking picture
I try with mission planner but for unknow reason MP was crashing on control+F / then VLC … Probably a misconfiguration on my side.
I check quickly with Skycontroller2 and it doesn’t seem to stream on FreeFlight.
Tridge: could you be kind enough to tell the correct behaviour on SK2. I mean must it stream or not on attached device on SK2 (Android/iPhone) ?
Thanks again for this big step ahead in the Disco video issue with Arduplane !
I’m working on support for skycontroller2 and will send a PR soon. The skycontroller2 is a wifi RC - the most difficult part is convincing it to remain connected to disco when the dragon flight stack is not running, other than that it’s working great for me
My best RC friend is taranis for years now but for the disco, having video feed on a portable device with Hud is really important for the best fpv experience.
If only we could have Taranis + Osd on video feed, it will be truly amazing but what you accomplish is already cool. Thanks again.
@macfly1202 my intention is to let both connected. So you can even use either of them.
@kikislater to connect to the drone SC2 is on wifi or 4G with the disco4g mod. To connect to a tablet/phone I think the best is to use a usb-ethernet. But disco is compatible with just a few dongles. For not using usb-ethernet we would need to demux the data over the USB like freeflight does… But it’s too much trouble
I can toggle the streaming just fine.
Recording / photos does not work for me (no media spawn in the storage)
My configuration is:
RC9_OPTION = 28 (B)
RC11_OPTION 34 (left trigger)
RC12_OPTION 35 (right trigger)
1: It would be great to be able to assign the exposure setting to a RC channel
2: it is important to have some feedback whatever video is recording or not - otherwise user can’t be sure whatever recording is on, or not. If no simple OSD is possible, I may suggest having STATUSTEXT feedback.
3: pan & tilt would be fantastic. again, we could link it to RC channels.
Hi, curious if anyone is still working on disco video with ardupilot. Maybe this config info might help with pan and tilt:
which evolved into the cam pan mod:
Also the aurega bebop app Auriga for Parrot Drones | Auriga apps
has head tracking in FPV which I have tested on iOS iPhone 12m and android google pixel3a and found to work with the disco to control pan and tilt.