mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
#ifdef
This commit is contained in:
parent
02342ad065
commit
821eef07cb
1 changed files with 2 additions and 0 deletions
|
@ -87,7 +87,9 @@ void calculateEstimatedAltitude(void) {
|
|||
zeroedAltitudeCm = getAltitudeState()->distCm;
|
||||
zeroedAltitudeDerivative = getAltitudeState()->velocityCm;
|
||||
displayAltitudeCm = zeroedAltitudeCm;
|
||||
#ifdef USE_VARIO
|
||||
estimatedVario = applyDeadband(lrintf(zeroedAltitudeDerivative), 10);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue