mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #6447 from bforbort/vario
Enable Vario on targets that support barometers
This commit is contained in:
commit
ea6c21f1e6
12 changed files with 64 additions and 5 deletions
|
@ -23,6 +23,7 @@
|
|||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "platform.h"
|
||||
|
||||
|
@ -889,7 +890,11 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
|||
#else
|
||||
sbufWriteU32(dst, 0);
|
||||
#endif
|
||||
#ifdef USE_VARIO
|
||||
sbufWriteU16(dst, getEstimatedVario());
|
||||
#else
|
||||
sbufWriteU16(dst, 0);
|
||||
#endif
|
||||
break;
|
||||
|
||||
case MSP_SONAR_ALTITUDE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue