RunCam serial driver - alpha testers wanted

Unlikely at the moment, someone would need to debug the peculiarities of their fake runcam implementation and how it relates to the camera operation. I’m sure it’s possible - but I have my hands full getting 3 different types of genuine runcam working :slight_smile:

For the interested the runcam protocol is horrible - it basically exactly mirrors the physical operation of each camera, which seems to vary camera to camera.

1 Like

logic analyzer will help? or oscilloscope is needed?

No you need the camera and the code and an understanding of how it works.

That said I have a feeling that @Marc_Dornan had one of these and they might support the remote protocol which I am in the process of fixing. So it’s worth trying my PR when it’s ready and reporting the results. I have also added significantly improved debug, so we might be able to tell what’s wrong that way.

1 Like

Ok my PR - https://github.com/ArduPilot/ardupilot/pull/13456 - is ready. Please try it!

1 Like

My PR is merged so if you build master you will get the latest changes. I am working on doc updates. Work in progress: https://github.com/ArduPilot/ardupilot_wiki/blob/6f6b020e7fc6aace53405428f8b07e5763c788f2/common/source/docs/common-camera-runcam.rst#id3

2 Likes

Nice work. I will be trying this out on a 7 inch quad soon.

1 Like

Just a nice little story here. I took my new build out yesterday and found I had mounted the camera (split micro 3s) upside down. It took me 15s to fix because I was immediately able to access the setup menu through the OSD and select flip image :grin:

I did find a small bug though :grin:

2 Likes

I have to see if I can make a test-rig for my RunCam2 to see if it’ll work with your driver. I wasn’t able to find anything about its protocol, uART, or anything else. They’re… not fantastic with documentation at times.

1 Like

sorry, i made a mistake

1 Like

Should work fine - I have tested with a split 2s

2 Likes

Oh, I see that they’re using the same harness. Fingers crossed then!

Thanks so much for your work on this, @andyp1per.

Does this work on the Runcam Control Adapter ( https://shop.runcam.com/runcam-control-adapter/ )?

1 Like

No idea, but you would think this converts the old-style OSD control into the RunCam serial protocol. So I would say there is a great chance that it works.

1 Like

Consider me your beta tester :slight_smile: I will report back.

1 Like

The Runcam Control Adapter works perfectly.

Thanks again for your contribution of this code. It’s a great feature, @andyp1per.

Perfect. Let me know if you notice any issues. The state machine is relatively complex and I can imagine there are still some gremlins in there

I see runcam has officially released the split firmware with the parameter fix: https://www.runcam.com/download/runcamsplit3series

1 Like

Please, can be also Runcam 2 4K controlled by AP? This camera has only one Remote control pin. Could it be connected to a GPIO?

Can you post a link to the camera?

Here it is: RunCam2 4K Edition - RunCam Store