1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Add altitude variant for OSD (#13716)

This commit is contained in:
Mark Haslinghuis 2024-06-26 22:19:06 +02:00 committed by GitHub
parent 2ceb8e0417
commit 0686b74197
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 31 additions and 11 deletions

View file

@ -482,6 +482,7 @@ extern "C" {
int32_t getMAhDrawn() { return 0; }
float getWhDrawn() { return 0.0; }
int32_t getEstimatedAltitudeCm() { return 0; }
int32_t getAltitudeAsl() { return 0; }
int32_t getEstimatedVario() { return 0; }
int32_t blackboxGetLogNumber() { return 0; }
bool isBlackboxDeviceWorking() { return true; }

View file

@ -1357,6 +1357,10 @@ extern "C" {
return simulationAltitude;
}
int32_t getAltitudeAsl() {
return simulationAltitude;
}
int32_t getEstimatedVario() {
return simulationVerticalSpeed;
}