Skip to content

Commit

Permalink
AP_Math: tests: correct tested return value for limit_accel_xy
Browse files Browse the repository at this point in the history
in this corner case we *do* need to scale the vector
  • Loading branch information
peterbarker committed Jan 5, 2025
1 parent 0c64367 commit f06ef62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Math/tests/test_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f06ef62

Please sign in to comment.