From 72d0721721ad17a14ada1b9ea736731a27ccec2a Mon Sep 17 00:00:00 2001 From: Marco Bauer Date: Thu, 11 Jul 2013 13:02:18 +1000 Subject: [PATCH] AP_Relay: setup pin for PX4 relay support --- libraries/AP_Relay/AP_Relay.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Relay/AP_Relay.cpp b/libraries/AP_Relay/AP_Relay.cpp index 0be9f56461..141f4f70b1 100644 --- a/libraries/AP_Relay/AP_Relay.cpp +++ b/libraries/AP_Relay/AP_Relay.cpp @@ -14,6 +14,8 @@ #define RELAY_PIN 47 #elif CONFIG_HAL_BOARD == HAL_BOARD_APM2 || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL #define RELAY_PIN 13 +#elif CONFIG_HAL_BOARD == HAL_BOARD_PX4 +#define RELAY_PIN 99 #else // no relay for this board #define RELAY_PIN -1 @@ -22,7 +24,7 @@ const AP_Param::GroupInfo AP_Relay::var_info[] PROGMEM = { // @Param: PIN // @DisplayName: Relay Pin - // @Description: Digital pin number for relay control. This is normally 47 for the APM1 relay and 13 for the A9 pin on APM2. + // @Description: Digital pin number for relay control. This is normally 47 for the APM1 relay, 13 for the A9 pin on APM2 and 99 for the high power relay pin on the PX4. // @User: Standard AP_GROUPINFO("PIN", 0, AP_Relay, _pin, RELAY_PIN),