mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
MSP command for sonar altitude
This commit is contained in:
parent
be8c6a23d9
commit
34cd8f466e
11 changed files with 78 additions and 42 deletions
|
@ -17,10 +17,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
extern int32_t sonarAlt;
|
||||
|
||||
void Sonar_init(void);
|
||||
void Sonar_update(void);
|
||||
void sonarInit(void);
|
||||
void sonarUpdate(void);
|
||||
|
||||
int32_t sonarRead(void);
|
||||
int32_t sonarCalculateAltitude(int32_t sonarAlt, int16_t tiltAngle);
|
||||
int32_t sonarGetLatestAltitude(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue