mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
replace ANALOG_IMU flag with USE_ANALOG_IMU
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
ifeq ($(ARCH), lpc21)
|
||||
ap.CFLAGS += -DANALOG_IMU -DADC -DUSE_ADC_0 -DUSE_ADC_1 -DUSE_ADC_2 -DUSE_ADC_3 -DUSE_ADC_4 -DUSE_ADC_5 -DUSE_ADC_6 -DUSE_ADC_7
|
||||
ap.CFLAGS += -DUSE_ANALOG_IMU -DADC -DUSE_ADC_0 -DUSE_ADC_1 -DUSE_ADC_2 -DUSE_ADC_3 -DUSE_ADC_4 -DUSE_ADC_5 -DUSE_ADC_6 -DUSE_ADC_7
|
||||
|
||||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs/dcm/dcm.c
|
||||
ap.srcs += $(SRC_SUBSYSTEMS)/ahrs/dcm/analogimu.c
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef ANALOG_IMU
|
||||
#ifdef USE_ANALOG_IMU
|
||||
#include "subsystems/ahrs/dcm/analogimu.h"
|
||||
#endif
|
||||
|
||||
@@ -435,12 +435,12 @@ void periodic_task_ap( void ) {
|
||||
#error "Only 20 and 60 allowed for CONTROL_RATE"
|
||||
#endif
|
||||
|
||||
#ifdef ANALOG_IMU
|
||||
#ifdef USE_ANALOG_IMU
|
||||
if (!_20Hz) {
|
||||
estimator_update_state_analog_imu();
|
||||
analog_imu_downlink();
|
||||
}
|
||||
#endif // ANALOG_IMU
|
||||
#endif // USE_ANALOG_IMU
|
||||
|
||||
#if CONTROL_RATE == 20
|
||||
if (!_20Hz)
|
||||
@@ -496,7 +496,7 @@ void init_ap( void ) {
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef ANALOG_IMU
|
||||
#ifdef USE_ANALOG_IMU
|
||||
analog_imu_init();
|
||||
#endif
|
||||
|
||||
@@ -549,7 +549,7 @@ void init_ap( void ) {
|
||||
traffic_info_init();
|
||||
#endif
|
||||
|
||||
#ifdef ANALOG_IMU
|
||||
#ifdef USE_ANALOG_IMU
|
||||
//wait 10secs for init
|
||||
sys_time_usleep(10000000);
|
||||
analog_imu_offset_set();
|
||||
|
||||
Reference in New Issue
Block a user