mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Fixed missing baro GPS altitude estimation
This commit is contained in:
parent
4bda34b66b
commit
bbc46d9cad
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,8 @@ void calculateEstimatedAltitude(timeUs_t currentTimeUs)
|
||||||
|
|
||||||
baroAlt -= baroAltOffset;
|
baroAlt -= baroAltOffset;
|
||||||
|
|
||||||
int goodGpsSats = 999;
|
int goodGpsSats = 0;
|
||||||
int badGpsSats = 0;
|
int badGpsSats = -1;
|
||||||
|
|
||||||
if (haveBaroAlt) {
|
if (haveBaroAlt) {
|
||||||
goodGpsSats = positionConfig()->altNumSatsGpsUse;
|
goodGpsSats = positionConfig()->altNumSatsGpsUse;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue