From f06ef625c4b2187d15b772cf23002143eb3f0ffa Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 2 Jan 2025 16:04:37 +1100 Subject: [PATCH] AP_Math: tests: correct tested return value for limit_accel_xy in this corner case we *do* need to scale the vector --- libraries/AP_Math/tests/test_control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Math/tests/test_control.cpp b/libraries/AP_Math/tests/test_control.cpp index c20bcc6916b4a..913cfe7fbf21b 100644 --- a/libraries/AP_Math/tests/test_control.cpp +++ b/libraries/AP_Math/tests/test_control.cpp @@ -509,7 +509,7 @@ TEST(Control, test_limit_accel) signal_caught = true; } else { // we come through here normally - EXPECT_FALSE(limit_accel_xy(vel, accel, accel_max)); + EXPECT_TRUE(limit_accel_xy(vel, accel, accel_max)); } EXPECT_FALSE(signal_caught);