Quasics2019Code/AdaLovelace/src/main/cpp/Commands/Push.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 Push::Execute() {
  if(Robot::oi->ShouldPush()){
    std::cerr << " Extending" << std::endl;
    Robot::pusher->SetPusherExtension(1.0);
  }
  else{
    std::cerr << " Retracting" << std::endl;
    Robot::pusher->SetPusherExtension(0.0);
  }
}
void Push :: Execute ( ) { if ( Robot :: oi -> ShouldPush ( ) ) { std :: cerr << " " << std :: endl ; Robot :: pusher -> SetPusherExtension ( 1.0 ) ; } else { std :: cerr << " " << std :: endl ; Robot :: pusher -> SetPusherExtension ( 0.0 ) ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run