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

Rename a few more flags

NAV -> USE_NAV
FIXED_WING_LANDING -> NAV_FIXED_WING_LANDING
ASYNC_GYRO_PROCESSING -> USE_ASYNC_GYRO_PROCESSING
BOOTLOG -> USE_BOOTLOG
STATS -> USE_STATS
This commit is contained in:
Alberto García Hierro 2017-12-04 12:58:51 +00:00
parent 7a1491e158
commit d5ba9c4eec
38 changed files with 112 additions and 112 deletions

View file

@ -454,7 +454,7 @@ static void applyAccelerationZero(const flightDynamicsTrims_t * accZero, const f
accADC[Z] = (accADC[Z] - accZero->raw[Z]) * accGain->raw[Z] / 4096;
}
#ifdef ASYNC_GYRO_PROCESSING
#ifdef USE_ASYNC_GYRO_PROCESSING
STATIC_FASTRAM float accumulatedMeasurements[XYZ_AXIS_COUNT];
STATIC_FASTRAM int accumulatedMeasurementCount;
@ -472,7 +472,7 @@ static void accUpdateAccumulatedMeasurements(void)
*/
void accGetMeasuredAcceleration(t_fp_vector *measuredAcc)
{
#ifdef ASYNC_GYRO_PROCESSING
#ifdef USE_ASYNC_GYRO_PROCESSING
if (accumulatedMeasurementCount) {
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
measuredAcc->A[axis] = accumulatedMeasurements[axis] * GRAVITY_CMSS / accumulatedMeasurementCount;
@ -528,7 +528,7 @@ void accUpdate(void)
}
#endif
#ifdef ASYNC_GYRO_PROCESSING
#ifdef USE_ASYNC_GYRO_PROCESSING
accUpdateAccumulatedMeasurements();
#endif
}