Quasics2021Code/MaeTester/src/main/cpp/commands/TriggerDrivenShootingCommand.cpp
// Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run
void TriggerDrivenShootingCommand::Execute() {
  if (runHighSpeed()) {
    shooter->SetSpeed(highSpeed);
  } else if (runLowSpeed()) {
    shooter->SetSpeed(lowSpeed);
  } else {
    shooter->Stop();
  }
}
void TriggerDrivenShootingCommand :: Execute ( ) { if ( runHighSpeed ( ) ) { shooter -> SetSpeed ( highSpeed ) ; } else if ( runLowSpeed ( ) ) { shooter -> SetSpeed ( lowSpeed ) ; } else { shooter -> Stop ( ) ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run