Quasics2018Code/Hedy-2019/src/main/cpp/Commands/GyroTurn.cpp
// Make this return true when this Command no longer needs to run execute()
Make this return true when this Command no longer needs to run execute()
Make this return true when this Command no longer needs to run execute ()
bool GyroTurn::IsFinished() {
	DumpStats();
	const double currentAngle = Robot::gyroADXRS->GetAngle();
	if (currentAngle >= m_angle && m_angle > 0){
		return true;
	}
	else if (m_angle < 0 && currentAngle <= m_angle){
		return true;
	}
	return false;
}
bool GyroTurn :: IsFinished ( ) { DumpStats ( ) ; const double currentAngle = Robot :: gyroADXRS -> GetAngle ( ) ; if ( currentAngle >= m_angle && m_angle > 0 ) { return true ; } else if ( m_angle < 0 && currentAngle <= m_angle ) { return true ; } return false ; }
Make this return true when this Command no longer needs to run execute()
Make this return true when this Command no longer needs to run execute ()