VRBRAIN / AP_RPM: removed RPM_PX4_PWM for VR Brain 5.1 and VR Micro Brain 5.2 (they haven't this input pin)

This commit is contained in:
LukeMike 2018-02-03 14:58:44 +01:00 committed by Andrew Tridgell
parent 502f19cbae
commit a319f6632f
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ void AP_RPM::init(void)
return; return;
} }
for (uint8_t i=0; i<RPM_MAX_INSTANCES; i++) { for (uint8_t i=0; i<RPM_MAX_INSTANCES; i++) {
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN #if (CONFIG_HAL_BOARD == HAL_BOARD_PX4) || ((CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN) && (!defined(CONFIG_ARCH_BOARD_VRBRAIN_V51) && !defined(CONFIG_ARCH_BOARD_VRUBRAIN_V52)))
uint8_t type = _type[num_instances]; uint8_t type = _type[num_instances];
uint8_t instance = num_instances; uint8_t instance = num_instances;

View File

@ -15,7 +15,7 @@
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4 || CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN #if (CONFIG_HAL_BOARD == HAL_BOARD_PX4) || ((CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN) && (!defined(CONFIG_ARCH_BOARD_VRBRAIN_V51) && !defined(CONFIG_ARCH_BOARD_VRUBRAIN_V52)))
#include <AP_BoardConfig/AP_BoardConfig.h> #include <AP_BoardConfig/AP_BoardConfig.h>
#include "RPM_PX4_PWM.h" #include "RPM_PX4_PWM.h"