Quasics2016Code/SimpleRobot/src/Commands/OneManIntakeArm.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 OneManIntakeArm::Execute() {
    if (Robot::oi->getPilotStick()->GetRawButton(1)
            && !Robot::oi->getPilotStick()->GetRawButton(2)) {
        Robot::intakeArm->SetArmDirection(IntakeArm::kRising);
    }
    else if (!Robot::oi->getPilotStick()->GetRawButton(1)
             && Robot::oi->getPilotStick()->GetRawButton(2)) {
        Robot::intakeArm->SetArmDirection(IntakeArm::kFalling);
    }
    else {
        Robot::intakeArm->SetArmDirection(IntakeArm::kOff);
    }
}
void OneManIntakeArm :: Execute ( ) { if ( Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 1 ) && ! Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 2 ) ) { Robot :: intakeArm -> SetArmDirection ( IntakeArm :: kRising ) ; } else if ( ! Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 1 ) && Robot :: oi -> getPilotStick ( ) -> GetRawButton ( 2 ) ) { Robot :: intakeArm -> SetArmDirection ( IntakeArm :: kFalling ) ; } else { Robot :: intakeArm -> SetArmDirection ( IntakeArm :: kOff ) ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run