Quasics2016Code/SimpleRobot/src/Commands/OneManIntake.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 OneManIntake::Execute() {
    if (Robot::oi->getPilotStick()->GetRawButton(11) && !Robot::oi->getPilotStick()->GetRawButton(12)) {
        Robot::intake->SetPower(Intake::kIntake);
    }
    else if (!Robot::oi->getPilotStick()->GetRawButton(11) && Robot::oi->getPilotStick()->GetRawButton(12)) {
        Robot::intake->SetPower(Intake::kOutput);
    }
    else {
        Robot::intake->SetPower(Intake::kOff);
    }
}
void OneManIntake :: Execute ( ) { if ( Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 11 ) && ! Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 12 ) ) { Robot :: intake -> SetPower ( Intake :: kIntake ) ; } else if ( ! Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 11 ) && Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 12 ) ) { Robot :: intake -> SetPower ( Intake :: kOutput ) ; } else { Robot :: intake -> SetPower ( Intake :: kOff ) ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run