mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-08 02:57:16 +08:00
The 12V output on the POWER AUX connector is gated by a BEC enable on PG4. It was driven on at boot with no way to control it, and the enable was mislabeled VDD_5V_PERIPH_EN even though it drives the 12V rail, not 5V. Rename it to VDD_12V_PERIPH_EN, give it a GPIO, and pre-map it to RELAY1 via RELAY1_PIN_DEFAULT so it can be switched from an RC channel (RELAY1_FUNCTION + RCx_OPTION). Default behavior is unchanged: the rail is still on at boot via the pin's OUTPUT HIGH state.