From 93d0aabb2e5c6e26b46bee8cb708e2613239c303 Mon Sep 17 00:00:00 2001 From: DrDab Date: Thu, 28 Sep 2023 19:23:58 -0700 Subject: [PATCH] Try shorter extension --- tests/control/PlanarArmControllerTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/control/PlanarArmControllerTest.cpp b/tests/control/PlanarArmControllerTest.cpp index 9a96a988c..356ad4a62 100644 --- a/tests/control/PlanarArmControllerTest.cpp +++ b/tests/control/PlanarArmControllerTest.cpp @@ -23,6 +23,6 @@ TEST_CASE("Test Planar Arm Safety Factor", "[control][planararmcontroller]") { foo.set_setpoint({10.0, 0.0}); REQUIRE(foo.get_setpoint(robot::types::dataclock::now()).norm() == 9.5); - foo.set_setpoint({9.0, 0.0}); - REQUIRE(foo.get_setpoint(robot::types::dataclock::now()).norm() == 9.5); + foo.set_setpoint({2.0, 3.0}); + REQUIRE(fabs(foo.get_setpoint(robot::types::dataclock::now()).norm() - 2.1166861277) < 1e-6); } \ No newline at end of file