Quasics2017Code/Nike/src/Commands/BaseCommands/Autonomous/PointTurnForAngleRaymond.cpp
// Called just before this Command runs the first time
Called just before this Command runs the first time
Called just before this Command runs the first time
void PointTurnForAngle::Initialize() {
	Robot::driveBase->ResetYaw();
	if (isAntiClockwise){
		Robot::driveBase->SetLeftPower(-userPower);
		Robot::driveBase->SetRightPower(userPower);
	} else {
		Robot::driveBase->SetLeftPower(userPower);
		Robot::driveBase->SetRightPower(-userPower);
	}
	SmartDashboard::PutNumber("Target Angle", targetDegrees);
}
void PointTurnForAngle :: Initialize ( ) { Robot :: driveBase -> ResetYaw ( ) ; if ( isAntiClockwise ) { Robot :: driveBase -> SetLeftPower ( - userPower ) ; Robot :: driveBase -> SetRightPower ( userPower ) ; } else { Robot :: driveBase -> SetLeftPower ( userPower ) ; Robot :: driveBase -> SetRightPower ( - userPower ) ; } SmartDashboard :: PutNumber ( " " , targetDegrees ) ; }
Called just before this Command runs the first time
Called just before this Command runs the first time