mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Updated for Pawel's request
Made function static. Hope to test in flight today.
This commit is contained in:
parent
1aec34b823
commit
8dd8a477bf
2 changed files with 1 additions and 2 deletions
|
@ -459,7 +459,7 @@ void osdFormatVelocityStr(char* buff, int32_t vel, bool _3D, bool _max)
|
||||||
/**
|
/**
|
||||||
* Returns the average velocity. This always uses stats, so can be called as an OSD element later if wanted, to show a real time average
|
* Returns the average velocity. This always uses stats, so can be called as an OSD element later if wanted, to show a real time average
|
||||||
*/
|
*/
|
||||||
void osdGenerateAverageVelocityStr(char* buff) {
|
static void osdGenerateAverageVelocityStr(char* buff) {
|
||||||
uint32_t cmPerSec = getTotalTravelDistance() / getFlightTime();
|
uint32_t cmPerSec = getTotalTravelDistance() / getFlightTime();
|
||||||
osdFormatVelocityStr(buff, cmPerSec, false, false);
|
osdFormatVelocityStr(buff, cmPerSec, false, false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -416,7 +416,6 @@ void osdCrosshairPosition(uint8_t *x, uint8_t *y);
|
||||||
bool osdFormatCentiNumber(char *buff, int32_t centivalue, uint32_t scale, int maxDecimals, int maxScaledDecimals, int length);
|
bool osdFormatCentiNumber(char *buff, int32_t centivalue, uint32_t scale, int maxDecimals, int maxScaledDecimals, int length);
|
||||||
void osdFormatAltitudeSymbol(char *buff, int32_t alt);
|
void osdFormatAltitudeSymbol(char *buff, int32_t alt);
|
||||||
void osdFormatVelocityStr(char* buff, int32_t vel, bool _3D, bool _max);
|
void osdFormatVelocityStr(char* buff, int32_t vel, bool _3D, bool _max);
|
||||||
void osdGenerateAverageVelocityStr(char* buff);
|
|
||||||
// Returns a heading angle in degrees normalized to [0, 360).
|
// Returns a heading angle in degrees normalized to [0, 360).
|
||||||
int osdGetHeadingAngle(int angle);
|
int osdGetHeadingAngle(int angle);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue