I just uploaded 4.3.1 on a couple of quads running PixRacer R15s. They formerly were running 4.0.7 and 4.1.x, and the relays worked fine, but after the upload, the relay pin stays low no matter what. RELAY_PIN is set to 55 for channel 6 output. Any ideas?
Sure, things have changed since then. Wiki has it covered:
Relay 4.2 >
Yes, the issue will likely be that the SERVOx_FUNCTION needs to be set to -1 (GPIO). Previously AP didn’t check whether there was a conflict between the Relay setup and the SERVOx_FUNCTION (PWM setup) and we’ve also remove the BRD_PWM_COUNT parameter and now use the SERVOx_FUNCTION parameters to more flexibly allow mixing the pwm and gpio outputs.
That’s probably it, I think the function is set to zero. I’ll check in the morning.
Thanks - that was it.