mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Split OSD element rendering into draw and display states (#13813)
This commit is contained in:
parent
a232655b42
commit
16827f0270
6 changed files with 196 additions and 112 deletions
|
@ -426,7 +426,7 @@ TEST(LQTest, TestLQAlarm)
|
|||
// elements showing values in alarm range should flash
|
||||
simulationTime += 1000000;
|
||||
simulationTime -= simulationTime % 1000000;
|
||||
startTime = simulationTime;
|
||||
startTime = simulationTime + 0.25e6;
|
||||
for (int i = 0; i < 15; i++) {
|
||||
// Blinking should happen at 2Hz
|
||||
simulationTime = startTime + i*0.25e6;
|
||||
|
@ -438,6 +438,7 @@ TEST(LQTest, TestLQAlarm)
|
|||
#ifdef DEBUG_OSD
|
||||
displayPortTestPrint();
|
||||
#endif
|
||||
|
||||
if (i % 2 == 0) {
|
||||
displayPortTestBufferSubstring(8, 1, "%c5", SYM_LINK_QUALITY);
|
||||
} else {
|
||||
|
|
|
@ -510,7 +510,7 @@ TEST_F(OsdTest, TestStatsTiming)
|
|||
// statistics screen should display the following
|
||||
int row = 7;
|
||||
displayPortTestBufferSubstring(2, row++, "2017-11-19 10:12:");
|
||||
displayPortTestBufferSubstring(2, row++, "TOTAL ARM : 00:13.61");
|
||||
displayPortTestBufferSubstring(2, row++, "TOTAL ARM : 00:13.60");
|
||||
displayPortTestBufferSubstring(2, row++, "LAST ARM : 00:01");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue