Quasics2019Code/HedyLamarr/src/main/cpp/Commands/SetHatch.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 SetHatch::Execute() {
  if(Robot::oi->isElbowSignaledUp()){
    std::cerr << "Signaled up" << std::endl;
      Robot::hatchPanelManipulator->MoveUp();
  }
  else if(Robot::oi->isElbowSignaledDown()){
    std::cerr << "Signaled down" << std::endl;
      Robot::hatchPanelManipulator->MoveDown();
  }
  else{
    Robot::hatchPanelManipulator->Stop();
    std::cerr << "The manipulator is currently stopped";
  }
}
void SetHatch :: Execute ( ) { if ( Robot :: oi -> isElbowSignaledUp ( ) ) { std :: cerr << " " << std :: endl ; Robot :: hatchPanelManipulator -> MoveUp ( ) ; } else if ( Robot :: oi -> isElbowSignaledDown ( ) ) { std :: cerr << " " << std :: endl ; Robot :: hatchPanelManipulator -> MoveDown ( ) ; } else { Robot :: hatchPanelManipulator -> Stop ( ) ; std :: cerr << " " ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run