mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Renamed function
This function really isn't formatting, so renamed it to something more fitting.
This commit is contained in:
parent
ccb0d57a11
commit
4de6091ccb
2 changed files with 3 additions and 3 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 osdFormatAverageVelocityStr(char* buff) {
|
void osdGenerateAverageVelocityStr(char* buff) {
|
||||||
uint32_t cmPerSec = getTotalTravelDistance() / getFlightTime();
|
uint32_t cmPerSec = getTotalTravelDistance() / getFlightTime();
|
||||||
osdFormatVelocityStr(buff, cmPerSec, false, false);
|
osdFormatVelocityStr(buff, cmPerSec, false, false);
|
||||||
}
|
}
|
||||||
|
@ -3552,7 +3552,7 @@ static void osdShowStatsPage1(void)
|
||||||
displayWrite(osdDisplayPort, statValuesX, top++, buff);
|
displayWrite(osdDisplayPort, statValuesX, top++, buff);
|
||||||
|
|
||||||
displayWrite(osdDisplayPort, statNameX, top, "AVG SPEED :");
|
displayWrite(osdDisplayPort, statNameX, top, "AVG SPEED :");
|
||||||
osdFormatAverageVelocityStr(buff);
|
osdGenerateAverageVelocityStr(buff);
|
||||||
osdLeftAlignString(buff);
|
osdLeftAlignString(buff);
|
||||||
displayWrite(osdDisplayPort, statValuesX, top++, buff);
|
displayWrite(osdDisplayPort, statValuesX, top++, buff);
|
||||||
|
|
||||||
|
|
|
@ -416,7 +416,7 @@ 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 osdFormatAverageVelocityStr(char* buff);
|
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