Main output on serial?

Hi everyone,

I would like to know if there’s an easy way to redirect the main outputs on a serial port. I this case, the engines input are not PWM but RS485. Is there an easy way to configure that ?

In the case I will need to modify the code, where shall I start ?

Best,

Romain

As inspiration you can look at https://github.com/PX4/Firmware/tree/master/src/drivers/tap_esc, as well as https://github.com/PX4/Firmware/blob/f6aa29a10fa8ae30b96d644762fcc83b54f545dc/src/drivers/px4io/px4io.cpp#L913.

Basically you have to subscribe to actuator_controls_0 and then send it out where you need it.

thank you for the resources, I’ll have a look.