Quasics2019Code/HedyLamarr/src/main/cpp/Commands/ElevatorToBottom.cpp
// Called just before this Command runs the first time
Called just before this Command runs the first time
Called just before this Command runs the first time
void ElevatorToBottom::Initialize() {
  if (Robot::elevator->atBottom()) {
    Robot::elevator->stop();
  } else {
    Robot::elevator->moveDown();
  }
}
void ElevatorToBottom :: Initialize ( ) { if ( Robot :: elevator -> atBottom ( ) ) { Robot :: elevator -> stop ( ) ; } else { Robot :: elevator -> moveDown ( ) ; } }
Called just before this Command runs the first time
Called just before this Command runs the first time
// CODE_REVIEW (mjh): This call to stop() (hopefully) isn't needed here, // since the elevator (again, hopefully) isn't already in motion.