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

Thank you, Travis

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-07-02 21:18:43 +02:00
parent ea822fbeff
commit cfc911bee4
2 changed files with 3 additions and 3 deletions

View file

@ -658,7 +658,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
break;
case MSP_SONAR_ALTITUDE:
#ifdef(USE_RANGEFINDER)
#ifdef USE_RANGEFINDER
sbufWriteU32(dst, rangefinderGetLatestAltitude());
#else
sbufWriteU32(dst, 0);

View file

@ -469,7 +469,7 @@ static void updatePitotTopic(timeUs_t currentTimeUs)
}
#endif
#ifdef(USE_RANGEFINDER)
#ifdef USE_RANGEFINDER
/**
* Read sonar and update alt/vel topic
* Function is called from TASK_RANGEFINDER at arbitrary rate - as soon as new measurements are available
@ -809,7 +809,7 @@ static void updateEstimatedTopic(timeUs_t currentTimeUs)
}
/* Surface offset */
#ifdef(USE_RANGEFINDER)
#ifdef USE_RANGEFINDER
posEstimator.est.surface = posEstimator.est.surface + posEstimator.est.surfaceVel * dt;
if (isSonarValid) {