From 2dcb525cd92a104c63bc1f4a47254e002512e875 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Wed, 5 Jul 2023 20:02:12 +0200 Subject: [PATCH] RCUpdateTest: RC switch correct corner case test value Co-authored-by: Junwoo Hwang --- src/modules/rc_update/RCUpdateTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rc_update/RCUpdateTest.cpp b/src/modules/rc_update/RCUpdateTest.cpp index 6a21a469a4..71035480c5 100644 --- a/src/modules/rc_update/RCUpdateTest.cpp +++ b/src/modules/rc_update/RCUpdateTest.cpp @@ -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