mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Added altitude symbol in OSD.
This commit is contained in:
parent
915de9d6db
commit
bd03951ca4
3 changed files with 12 additions and 11 deletions
|
@ -520,7 +520,7 @@ TEST(OsdTest, TestAlarms)
|
|||
displayPortTestBufferSubstring(12, 1, "%c16.8%c", SYM_BATT_FULL, SYM_VOLT);
|
||||
displayPortTestBufferSubstring(1, 1, "%c00:", SYM_FLY_M); // only test the minute part of the timer
|
||||
displayPortTestBufferSubstring(20, 1, "%c01:", SYM_ON_M); // only test the minute part of the timer
|
||||
displayPortTestBufferSubstring(23, 7, " .0%c", SYM_M);
|
||||
displayPortTestBufferSubstring(23, 7, "%c .0%c", SYM_ALTITUDE, SYM_M);
|
||||
}
|
||||
|
||||
// when
|
||||
|
@ -549,7 +549,7 @@ TEST(OsdTest, TestAlarms)
|
|||
displayPortTestBufferSubstring(12, 1, "%c13.5%c", SYM_MAIN_BATT, SYM_VOLT);
|
||||
displayPortTestBufferSubstring(1, 1, "%c01:", SYM_FLY_M); // only test the minute part of the timer
|
||||
displayPortTestBufferSubstring(20, 1, "%c02:", SYM_ON_M); // only test the minute part of the timer
|
||||
displayPortTestBufferSubstring(23, 7, " 120.0%c", SYM_M);
|
||||
displayPortTestBufferSubstring(23, 7, "%c 120.0%c", SYM_ALTITUDE, SYM_M);
|
||||
} else {
|
||||
displayPortTestBufferIsEmpty();
|
||||
}
|
||||
|
@ -770,7 +770,7 @@ TEST(OsdTest, TestElementAltitude)
|
|||
osdRefresh(simulationTime);
|
||||
|
||||
// then
|
||||
displayPortTestBufferSubstring(23, 7, " .0%c", SYM_M);
|
||||
displayPortTestBufferSubstring(23, 7, "%c .0%c", SYM_ALTITUDE, SYM_M);
|
||||
|
||||
// when
|
||||
simulationAltitude = 247;
|
||||
|
@ -778,7 +778,7 @@ TEST(OsdTest, TestElementAltitude)
|
|||
osdRefresh(simulationTime);
|
||||
|
||||
// then
|
||||
displayPortTestBufferSubstring(23, 7, " 2.4%c", SYM_M);
|
||||
displayPortTestBufferSubstring(23, 7, "%c 2.4%c", SYM_ALTITUDE, SYM_M);
|
||||
|
||||
// when
|
||||
simulationAltitude = 4247;
|
||||
|
@ -786,7 +786,7 @@ TEST(OsdTest, TestElementAltitude)
|
|||
osdRefresh(simulationTime);
|
||||
|
||||
// then
|
||||
displayPortTestBufferSubstring(23, 7, " 42.4%c", SYM_M);
|
||||
displayPortTestBufferSubstring(23, 7, "%c 42.4%c", SYM_ALTITUDE, SYM_M);
|
||||
|
||||
// when
|
||||
simulationAltitude = -247;
|
||||
|
@ -794,7 +794,7 @@ TEST(OsdTest, TestElementAltitude)
|
|||
osdRefresh(simulationTime);
|
||||
|
||||
// then
|
||||
displayPortTestBufferSubstring(23, 7, " -2.4%c", SYM_M);
|
||||
displayPortTestBufferSubstring(23, 7, "%c -2.4%c", SYM_ALTITUDE, SYM_M);
|
||||
|
||||
// when
|
||||
simulationAltitude = -70;
|
||||
|
@ -802,7 +802,7 @@ TEST(OsdTest, TestElementAltitude)
|
|||
osdRefresh(simulationTime);
|
||||
|
||||
// then
|
||||
displayPortTestBufferSubstring(23, 7, " -.7%c", SYM_M);
|
||||
displayPortTestBufferSubstring(23, 7, "%c -.7%c", SYM_ALTITUDE, SYM_M);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue