mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
add POSITION_ALT_SOURCE lookup table to enum
add cli setting to choose alt source modify alt calculation
This commit is contained in:
parent
ee0ac209c3
commit
fe4c3ac149
5 changed files with 60 additions and 12 deletions
|
@ -22,6 +22,12 @@
|
|||
|
||||
#include "common/time.h"
|
||||
|
||||
typedef struct positionConfig_s {
|
||||
uint8_t altSource;
|
||||
} positionConfig_t;
|
||||
|
||||
PG_DECLARE(positionConfig_t, positionConfig);
|
||||
|
||||
bool isAltitudeOffset(void);
|
||||
void calculateEstimatedAltitude(timeUs_t currentTimeUs);
|
||||
int32_t getEstimatedAltitudeCm(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue