diff --git a/sw/airborne/boards/apogee_1.0.h b/sw/airborne/boards/apogee_1.0.h index eba373f9d3..78ff267397 100644 --- a/sw/airborne/boards/apogee_1.0.h +++ b/sw/airborne/boards/apogee_1.0.h @@ -113,7 +113,7 @@ #define POWER_SWITCH_LED 9 -/* Pint to set Uart2 RX polarity, on PB13, output low inverts, high doesn't */ +/* Pint to set Uart2 RX polarity, on PB13, output high inverts, low doesn't */ #define RC_POLARITY_GPIO_PORT GPIOB #define RC_POLARITY_GPIO_PIN GPIO13 diff --git a/sw/airborne/subsystems/radio_control/sbus.c b/sw/airborne/subsystems/radio_control/sbus.c index 21bf9dc485..726e0781c5 100644 --- a/sw/airborne/subsystems/radio_control/sbus.c +++ b/sw/airborne/subsystems/radio_control/sbus.c @@ -48,11 +48,11 @@ * SBUS signal has a reversed polarity compared to normal UART * this allows to using hardware UART peripheral by changing * the input signal polarity. - * Setting this gpio ouput low inverts the signal, - * output high sets it to normal polarity. + * Setting this gpio ouput high inverts the signal, + * output low sets it to normal polarity. */ #ifndef RC_SET_POLARITY -#define RC_SET_POLARITY gpio_output_low +#define RC_SET_POLARITY gpio_output_high #endif