forked from Archive/PX4-Autopilot
RCUpdateTest: RC switch correct corner case test value
Co-authored-by: Junwoo Hwang <junwoo091400@gmail.com>
This commit is contained in:
parent
42fa41e601
commit
2dcb525cd9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue