mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention.
This commit is contained in:
parent
62c5711ce7
commit
a8d34dabb0
152 changed files with 589 additions and 588 deletions
|
@ -111,7 +111,7 @@ void pgResetFn_barometerConfig(barometerConfig_t *barometerConfig)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef BARO
|
||||
#ifdef USE_BARO
|
||||
|
||||
static uint16_t calibratingB = 0; // baro calibration = get new ground pressure value
|
||||
static int32_t baroPressure = 0;
|
||||
|
|
|
@ -106,7 +106,7 @@ void pgResetFn_compassConfig(compassConfig_t *compassConfig)
|
|||
compassConfig->interruptTag = COMPASS_INTERRUPT_TAG;
|
||||
}
|
||||
|
||||
#if defined(MAG)
|
||||
#if defined(USE_MAG)
|
||||
|
||||
static int16_t magADCRaw[XYZ_AXIS_COUNT];
|
||||
static uint8_t magInit = 0;
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
uint8_t detectedSensors[SENSOR_INDEX_COUNT] = { GYRO_NONE, ACC_NONE, BARO_NONE, MAG_NONE };
|
||||
|
||||
|
||||
#ifdef SONAR
|
||||
#ifdef USE_SONAR
|
||||
static bool sonarDetect(void)
|
||||
{
|
||||
if (feature(FEATURE_SONAR)) {
|
||||
|
@ -65,15 +65,15 @@ bool sensorsAutodetect(void)
|
|||
accInit(gyro.targetLooptime);
|
||||
}
|
||||
|
||||
#ifdef MAG
|
||||
#ifdef USE_MAG
|
||||
compassInit();
|
||||
#endif
|
||||
|
||||
#ifdef BARO
|
||||
#ifdef USE_BARO
|
||||
baroDetect(&baro.dev, barometerConfig()->baro_hardware);
|
||||
#endif
|
||||
|
||||
#ifdef SONAR
|
||||
#ifdef USE_SONAR
|
||||
if (sonarDetect()) {
|
||||
sonarInit(sonarConfig());
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "platform.h"
|
||||
|
||||
#ifdef SONAR
|
||||
#ifdef USE_SONAR
|
||||
|
||||
#include "build/build_config.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue