Skip to content

Commit

Permalink
Fix flywheel commads not using setVelocity
Browse files Browse the repository at this point in the history
  • Loading branch information
calebchalmers committed May 23, 2024
1 parent 96044ce commit af1f5f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace commands

void CommandFlywheelOff::initialize() {}

void CommandFlywheelOff::execute() { flywheel->setLaunchSpeed(0.0f); }
void CommandFlywheelOff::execute() { flywheel->setVelocity(0.0f); }

void CommandFlywheelOff::end(bool) {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace commands
{

void CommandRotateFlywheel::initialize() { flywheel->setLaunchSpeed(FLYWHEEL_SPEED); }
void CommandRotateFlywheel::initialize() { flywheel->setVelocity(FLYWHEEL_SPEED); }

void CommandRotateFlywheel::execute() {}

void CommandRotateFlywheel::end(bool) { flywheel->setLaunchSpeed(0.0f); }
void CommandRotateFlywheel::end(bool) { flywheel->setVelocity(0.0f); }

bool CommandRotateFlywheel::isFinished() const { return false; }
} // namespace commands

0 comments on commit af1f5f1

Please sign in to comment.