mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Fixed USE_VARIO conditional.Also fixed some indentation.
This commit is contained in:
parent
cb935ff55c
commit
33a956d123
2 changed files with 10 additions and 10 deletions
|
@ -104,7 +104,7 @@ void calculateEstimatedAltitude(timeUs_t currentTimeUs)
|
|||
#endif
|
||||
|
||||
#ifdef USE_GPS
|
||||
if (sensors(SENSOR_GPS) && STATE(GPS_FIX)) {
|
||||
if (sensors(SENSOR_GPS) && STATE(GPS_FIX)) {
|
||||
gpsAlt = gpsSol.llh.altCm;
|
||||
#ifdef USE_VARIO
|
||||
gpsVertSpeed = GPS_verticalSpeedInCmS;
|
||||
|
@ -116,7 +116,7 @@ if (sensors(SENSOR_GPS) && STATE(GPS_FIX)) {
|
|||
}
|
||||
// always use at least 10% of other sources besides gps if available
|
||||
gpsTrust = MIN(gpsTrust, 0.9f);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (ARMING_FLAG(ARMED) && !altitudeOffsetSet) {
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(USE_BARO) && !defined(USE_GPS)
|
||||
#if !defined(USE_BARO)
|
||||
#undef USE_VARIO
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue