Skip to content

Commit

Permalink
Set setpoint in safety factor test
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDab committed Sep 29, 2023
1 parent f033804 commit d7b14ce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/control/PlanarArmControllerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ TEST_CASE("Test Planar Arm Controller", "[control][planararmcontroller]") {
}

TEST_CASE("Test Planar Arm Safety Factor", "[control][planararmcontroller]") {
navtypes::Vectord<2> segLens({2.0, 3.0});
navtypes::Vectord<2> minAngles({-M_PI, -M_PI});
navtypes::Vectord<2> maxAngles({M_PI, M_PI});
kinematics::PlanarArmKinematics<2> kin_obj(segLens, minAngles, maxAngles, 0.0, 0);

PlanarArmController<2> foo({0, 0}, kin_obj, Constants::arm::SAFETY_FACTOR);

foo.set_setpoint({5.0, 0.0});
}

0 comments on commit d7b14ce

Please sign in to comment.