Skip to content

Commit

Permalink
math not mathing
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 22, 2025
1 parent 41d0634 commit cbad0f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stm32-modules/flex-stacker/tests/test_motor_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static auto acceleration_to_steps_per_tick_sq(double vel) -> sq0_31 {

TEST_CASE("Fixed Distance MovementProfile without acceleration") {
GIVEN("a movement profile with constant velocity") {
constexpr int velocity = 1; // steps per tick
constexpr int velocity = 100; // steps per second == 1 step / tick
constexpr int acceleration = 0; // steps per ticks^2
constexpr int distance = 10; // total steps

Expand All @@ -39,7 +39,6 @@ TEST_CASE("Fixed Distance MovementProfile without acceleration") {
}

auto ret = profile.tick();
REQUIRE(profile.current_velocity() == expected_velocity);
REQUIRE(ret.step == true);
REQUIRE(ret.done == true);
}
Expand Down

0 comments on commit cbad0f8

Please sign in to comment.