1
0
Fork 0
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:
Steve Evans 2024-08-22 20:57:33 +01:00 committed by GitHub
parent a232655b42
commit 16827f0270
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 196 additions and 112 deletions

View file

@ -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 {

View file

@ -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");
}