RCUpdateTest: RC switch correct corner case test value

Co-authored-by: Junwoo Hwang <junwoo091400@gmail.com>
This commit is contained in:
Matthias Grob 2023-07-05 20:02:12 +02:00
parent 42fa41e601
commit 2dcb525cd9
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ TEST_F(RCUpdateTest, ReturnSwitchNegativeThresholds)
checkReturnSwitch(1.f, -0.75f, 3); // Above threshold -> SWITCH_POS_OFF
checkReturnSwitch(.5f, -0.75f, 3); // On threshold -> SWITCH_POS_OFF
checkReturnSwitch(-.001f, -0.75f, 1); // Slightly below threshold -> SWITCH_POS_ON
checkReturnSwitch(.499f, -0.75f, 1); // Slightly below threshold -> SWITCH_POS_ON
checkReturnSwitch(-1.f, -0.75f, 1); // Below threshold -> SWITCH_POS_ON
checkReturnSwitch(1.f, -1.f, 3); // On maximum threshold -> SWITCH_POS_OFF