Quasics2019Code/HedyLamarr/src/main/cpp/Commands/NewElevatorToMiddle.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 NewElevatorToMiddle::Execute() {
  if(needs_to_switch) {
    if(moving_down) {
      Robot::newElevator->move(0.6);
      moving_down = false;
    }
    if(!moving_down) {
      Robot::newElevator->move(-0.6);
      moving_down = true;
    }
    needs_to_switch = false;
  }
}
void NewElevatorToMiddle :: Execute ( ) { if ( needs_to_switch ) { if ( moving_down ) { Robot :: newElevator -> move ( 0.6 ) ; moving_down = false ; } if ( ! moving_down ) { Robot :: newElevator -> move ( -0.6 ) ; moving_down = true ; } needs_to_switch = false ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run