mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
[baro_board] disable onboard baro with <configure name="USE_BARO_BOARD" value="FALSE"/>
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
# Drivers for baros already on an autopilot board
|
||||
|
||||
|
||||
# check that onboard baro was not explicitly disabled with
|
||||
# <configure name="USE_BARO_BOARD" value="FALSE"/>
|
||||
|
||||
USE_BARO_BOARD ?= TRUE
|
||||
ifeq ($(USE_BARO_BOARD), TRUE)
|
||||
|
||||
# booz baro
|
||||
ifeq ($(BOARD), booz)
|
||||
ap.srcs += $(SRC_BOARD)/baro_board.c
|
||||
@@ -112,8 +118,14 @@ else ifeq ($(BOARD), umarim)
|
||||
ap.srcs += boards/umarim/baro_board.c
|
||||
endif
|
||||
|
||||
endif # End baro
|
||||
endif # check board
|
||||
|
||||
ifneq ($(BARO_LED),none)
|
||||
ap.CFLAGS += -DBARO_LED=$(BARO_LED)
|
||||
endif
|
||||
|
||||
else # USE_BARO_BOARD is not TRUE, was explicitly disabled
|
||||
|
||||
ap.CFLAGS += -DUSE_BARO_BOARD=FALSE
|
||||
|
||||
endif # check USE_BARO_BOARD
|
||||
|
||||
@@ -183,8 +183,10 @@
|
||||
//#define SPI_SELECT_SLAVE5_PORT GPIOC
|
||||
//#define SPI_SELECT_SLAVE5_PIN GPIO4
|
||||
|
||||
/* Activate onboard baro */
|
||||
/* by default activate onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
/* PWM */
|
||||
#define PWM_USE_TIM2 1
|
||||
|
||||
@@ -253,8 +253,11 @@
|
||||
#define I2C2_GPIO_SDA GPIO11
|
||||
|
||||
|
||||
/* Activate onboard baro */
|
||||
/* by default activate onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
|
||||
/* PWM */
|
||||
#define PWM_USE_TIM2 1
|
||||
|
||||
@@ -9,6 +9,10 @@
|
||||
#define ActuatorsDefaultInit() ActuatorsArdroneInit()
|
||||
#define ActuatorsDefaultCommit() ActuatorsArdroneCommit()
|
||||
|
||||
|
||||
/* by default activate onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_ARDRONE2_RAW */
|
||||
|
||||
@@ -182,6 +182,9 @@
|
||||
#endif
|
||||
|
||||
|
||||
/* by default enable onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_BOOZ2_V1_0_H */
|
||||
|
||||
@@ -224,8 +224,12 @@
|
||||
}
|
||||
#endif // USE_AD1
|
||||
|
||||
/* Activate onboard baro */
|
||||
|
||||
/* by default activate onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
|
||||
/* PWM */
|
||||
#define PWM_USE_TIM3 1
|
||||
|
||||
@@ -156,7 +156,11 @@
|
||||
#define BOARD_ADC_CHANNEL_3 0
|
||||
#define BOARD_ADC_CHANNEL_4 15
|
||||
|
||||
|
||||
/* by default activate onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
|
||||
/* Default actuators driver */
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
#endif
|
||||
|
||||
/* GPIO mapping for ADC1 pins, overwrites the default in arch/stm32/mcu_periph/adc_arch.c */
|
||||
// FIXME, this is not very nice, is also stm lib specific
|
||||
// FIXME, this is not very nice, is also libopencm3 lib specific
|
||||
#ifdef USE_AD1
|
||||
#define ADC1_GPIO_INIT(gpio) { \
|
||||
gpio_set_mode(GPIOC, GPIO_MODE_INPUT, \
|
||||
@@ -120,6 +120,10 @@
|
||||
}
|
||||
#endif // USE_AD1
|
||||
|
||||
|
||||
/* by default enable onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_LISA_M_1_0_H */
|
||||
|
||||
@@ -165,6 +165,9 @@
|
||||
#endif // USE_AD1
|
||||
|
||||
|
||||
/* by default activate onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_LISA_M_2_0_H */
|
||||
|
||||
@@ -105,6 +105,10 @@
|
||||
#define SERVO_REG_1 PWMMR5
|
||||
#endif
|
||||
|
||||
|
||||
/* by default activate onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_NAVGO_V1_0_H */
|
||||
|
||||
@@ -114,6 +114,10 @@
|
||||
#define SPI1_DRDY_EINT 0
|
||||
#define SPI1_DRDY_VIC_IT VIC_EINT0
|
||||
|
||||
|
||||
/* by default enable onboard baro */
|
||||
#ifndef USE_BARO_BOARD
|
||||
#define USE_BARO_BOARD 1
|
||||
#endif
|
||||
|
||||
#endif /* CONFIG_UMARIM_V1_0_H */
|
||||
|
||||
Reference in New Issue
Block a user