Quasics2018Code/Hedy-2019/src/main/cpp/Commands/GyroTurn.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 GyroTurn::Execute() {
	const double currentAngle = Robot::gyroADXRS->GetAngle();
	if (currentAngle + 10 >= m_angle && m_angle > 0){
		Robot::driveBase->SetPowerToMotors(.25, .25);
	}
}
void GyroTurn :: Execute ( ) { const double currentAngle = Robot :: gyroADXRS -> GetAngle ( ) ; if ( currentAngle + 10 >= m_angle && m_angle > 0 ) { Robot :: driveBase -> SetPowerToMotors ( .25 , .25 ) ; } }
Called repeatedly when this Command is scheduled to run
Called repeatedly when this Command is scheduled to run