Quasics2019Code/HedyLamarr/src/main/cpp/Commands/ElevatorToPositionOne.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 ElevatorToPositionOne::Execute() {
  if (needs_to_switch) {
    if (moving_down) {
      Robot::elevator->moveUp();
      moving_down = false;
    } else {
      Robot::elevator->moveDown();
      moving_down = true;
    }
    needs_to_switch = false;
  }
}
void ElevatorToPositionOne :: Execute ( ) { if ( needs_to_switch ) { if ( moving_down ) { Robot :: elevator -> moveUp ( ) ; moving_down = false ; } else { Robot :: elevator -> moveDown ( ) ; 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