1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 16:55:29 +03:00

Renamed function

This function really isn't formatting, so renamed it to something more fitting.
This commit is contained in:
Darren Lines 2021-09-08 16:22:45 +01:00
parent ccb0d57a11
commit 4de6091ccb
2 changed files with 3 additions and 3 deletions

View file

@ -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
*/
void osdFormatAverageVelocityStr(char* buff) {
void osdGenerateAverageVelocityStr(char* buff) {
uint32_t cmPerSec = getTotalTravelDistance() / getFlightTime();
osdFormatVelocityStr(buff, cmPerSec, false, false);
}
@ -3552,7 +3552,7 @@ static void osdShowStatsPage1(void)
displayWrite(osdDisplayPort, statValuesX, top++, buff);
displayWrite(osdDisplayPort, statNameX, top, "AVG SPEED :");
osdFormatAverageVelocityStr(buff);
osdGenerateAverageVelocityStr(buff);
osdLeftAlignString(buff);
displayWrite(osdDisplayPort, statValuesX, top++, buff);

View file

@ -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);
void osdFormatAltitudeSymbol(char *buff, int32_t alt);
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).
int osdGetHeadingAngle(int angle);