I want to intercept the value sent from the radio through the PX4 Cube to a servo. I have successfully intercepted the output from an autopilot command but not one coming up the radio.
I have the mode for SERVO9 set to 57 (radio channel 7) and it drives the servo, but I can’t find in the software where I can intercept and read the commanded value.
More specifically, I want to use an unused RC channel from the ground to adjust a gain in-flight. I have the channel coming up on RC channel 7, going through the PX4/Cube and coming out channel 9 (On the AUX out bus). I want to grab the value on it’s way through (It won’t actually go to a servo) and use it to adjust my gain.
I have successfully grabbed values coming out of the autopilot for motor tilt (Mode 41) to do other things but I can’t detect mode 57 come through.
Ok, I’m making a little progress. I have the tuning setup to switch off channel 8 and take it’s value from channel 7 and I can see it switch but I’m having trouble figuring out where it reads the value from channel 7.