1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Cleanup baro/mag/gyro/acc method names from old sensors.c

This commit is contained in:
Dominic Clifton 2014-04-22 02:43:39 +01:00
parent 7e76fd6995
commit 9f26018abd
12 changed files with 38 additions and 43 deletions

View file

@ -83,7 +83,7 @@ void imuInit(void)
#ifdef MAG
// if mag sensor is enabled, use it
if (sensors(SENSOR_MAG))
Mag_init();
compassInit();
#endif
}
@ -92,9 +92,9 @@ void computeIMU(void)
uint32_t axis;
static int16_t gyroYawSmooth = 0;
Gyro_getADC();
gyroGetADC();
if (sensors(SENSOR_ACC)) {
ACC_getADC();
accGetADC();
getEstimatedAttitude();
} else {
accADC[X] = 0;
@ -406,7 +406,7 @@ int getEstimatedAltitude(void)
vel = 0;
accAlt = 0;
}
BaroAlt = Baro_calculateAltitude();
BaroAlt = baroCalculateAltitude();
dt = accTimeSum * 1e-6f; // delta acc reading time in seconds