1
0
Fork 0
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:
mikeller 2017-11-05 08:46:59 +13:00
parent 62c5711ce7
commit a8d34dabb0
152 changed files with 589 additions and 588 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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());
}

View file

@ -21,7 +21,7 @@
#include "platform.h"
#ifdef SONAR
#ifdef USE_SONAR
#include "build/build_config.h"