Quasics2016Code/SimpleRobot/src/Commands/SwingTurn.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 SwingTurn::Execute() {
    if(m_turnLeft) {
        Robot::driveSystem->MoveLeft(0);
        Robot::driveSystem->MoveRight(m_powerPercent);
    }
    else {
        Robot::driveSystem->MoveLeft(m_powerPercent);
        Robot::driveSystem->MoveRight(0);
    }
}
void SwingTurn :: Execute ( ) { if ( m_turnLeft ) { Robot :: driveSystem -> MoveLeft ( 0 ) ; Robot :: driveSystem -> MoveRight ( m_powerPercent ) ; } else { Robot :: driveSystem -> MoveLeft ( m_powerPercent ) ; Robot :: driveSystem -> MoveRight ( 0 ) ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run