RC over MAVLink
⚠️ This documentation is outdated! A current version is available at openhdfpv.org
Fundamentals of RC Control via MAVLink
MAVLink defines certain message types one of which is "RC_CHANNELS_OVERRIDE" message. These messages are used to command the Flight Controller (FC) to ignore all inputs from the regular RC-Receiver (SBUS, SUMD, CPPM, etc.) and instead override the RC channels with the information that is sent as a payload with the MAVLink RC_CHANNELS_OVERRIDEmessages. Thus this feature can be used to override the RC Transmitter and control the vehicle from a Ground Control Station but it can also be used as the sole way to fly the vehicle. There is no need to have a standard RC receiver connected to the FC.
Setting up RC over MAVLink
- Duplicate the currently used Model in your transmitter (if you use one, skip if using a joystick) and assign a new name (e.g.: "MyQuad" -> "MyQuad Open.HD") 
- Switch to the new Model "MyQuad Open.HD" 
- Enter the "MODEL SETUP" Screen and turn - Internal RF Mode=OFFand- External RF Mode=OFF.- This deactivates the internal and external RF module to not cause any HF-interference. For an external module it is good practice to even remove it physically from the radio. (Some HF-modules do not respect the "OFF"-Setting and will transmit HF anyway) 
- Edit the - openhd-settings-1.txtin the- bootpartition of the SD card (both Air unit and Ground unit) and set:- TELEMETRY_TRANSMISSION=wbc- TELEMETRY_UPLINK=mavlink- RC=mavlink
- Unplug your regular RC-Receiver from your Flight Controller, also remove power to the receiver to prevent interference 
- Make sure the Air unit is properly connected to the Flight Controller (See General and Wiring -> Flight Controller) 
- Connect to your Flight Controller via Mission Planner (USB) and open the Full-Parameter-Tree. Configure the parameters as described in the section below. 
- Save the parameters and power off your Flight Controller (also cut USB connection to PC as it powers your FC as well) 
- Now power everything up again: Flight Controller + Air unit and your Ground unit 
- Once up and running connect your joystick or transmitter via USB to the Ground unit 
- Connect your Flight Controller via USB to PC and connect via Mission Planner 
- Go the the RC Calibration dialog and happily see the RC Channels moving :-) 
- Perform the RC Calibration 
- Check Failsafe Settings 
- Arm Arducopter/plane/rover - remove any Props first!! - and throttle up. This is essential since FailSafe won't kick-in when not in flight 
- Test the following scenarios and make sure FailSafe kicks in: - Unplug USB Joystick -> FailSafe should kick in 
- Re-plug the USB Joystick -> FailSafe can be disabled by the Joystick after several seconds 
- Turn off Ground unit -> FailSafe should kick in 
 
Last updated
Was this helpful?
