mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 00:35:39 +03:00
Center ARMED message and stats (#12086)
This commit is contained in:
parent
c38bf42059
commit
962a7d0cae
3 changed files with 53 additions and 48 deletions
|
@ -137,7 +137,7 @@ void doTestArm(bool testEmpty = true)
|
|||
|
||||
// then
|
||||
// arming alert displayed
|
||||
displayPortTestBufferSubstring(12, 7, "ARMED");
|
||||
displayPortTestBufferSubstring(13, 8, "ARMED");
|
||||
|
||||
// given
|
||||
// armed alert times out (0.5 seconds)
|
||||
|
@ -221,9 +221,9 @@ TEST(LQTest, TestInit)
|
|||
|
||||
// then
|
||||
// display buffer should contain splash screen
|
||||
displayPortTestBufferSubstring(7, 8, "MENU:THR MID");
|
||||
displayPortTestBufferSubstring(11, 9, "+ YAW LEFT");
|
||||
displayPortTestBufferSubstring(11, 10, "+ PITCH UP");
|
||||
displayPortTestBufferSubstring(7, 10, "MENU:THR MID");
|
||||
displayPortTestBufferSubstring(11, 11, "+ YAW LEFT");
|
||||
displayPortTestBufferSubstring(11, 12, "+ PITCH UP");
|
||||
|
||||
// when
|
||||
// splash screen timeout has elapsed
|
||||
|
|
|
@ -168,7 +168,7 @@ void doTestArm(bool testEmpty = true)
|
|||
|
||||
// then
|
||||
// arming alert displayed
|
||||
displayPortTestBufferSubstring(12, 7, "ARMED");
|
||||
displayPortTestBufferSubstring(13, 8, "ARMED");
|
||||
|
||||
// given
|
||||
// armed alert times out (0.5 seconds)
|
||||
|
@ -220,7 +220,7 @@ void doTestDisarm()
|
|||
enabledStats >>= 1;
|
||||
}
|
||||
|
||||
displayPortTestBufferSubstring(2, 7 - count / 2, " --- STATS ---");
|
||||
displayPortTestBufferSubstring(9, 7 - count / 2, "--- STATS ---");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -363,9 +363,9 @@ TEST_F(OsdTest, TestInit)
|
|||
|
||||
// then
|
||||
// display buffer should contain splash screen
|
||||
displayPortTestBufferSubstring(7, 8, "MENU:THR MID");
|
||||
displayPortTestBufferSubstring(11, 9, "+ YAW LEFT");
|
||||
displayPortTestBufferSubstring(11, 10, "+ PITCH UP");
|
||||
displayPortTestBufferSubstring(7, 10, "MENU:THR MID");
|
||||
displayPortTestBufferSubstring(11, 11, "+ YAW LEFT");
|
||||
displayPortTestBufferSubstring(11, 12, "+ PITCH UP");
|
||||
|
||||
// when
|
||||
// splash screen timeout has elapsed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue