code/WPILib/MotorSafetyHelper.cpp
/**
 * Check if this motor has exceeded its timeout.
 * This method is called periodically to determine if this motor has exceeded its timeout
 * value. If it has, the stop method is called, and the motor is shut down until its value is
 * updated again.
 */
Check if this motor has exceeded its timeout.
This method is called periodically to determine if this motor has exceeded its timeout
value. If it has, the stop method is called, and the motor is shut down until its value is
updated again.
Check if this motor has exceeded its timeout . This method is called periodically to determine if this motor has exceeded its timeout value . If it has the stop method is called and the motor is shut down until its value is updated again .
void MotorSafetyHelper::Check()
{
	if (!m_enabled) return;
	if (m_stopTime < Timer::GetFPGATimestamp())
	{
		m_safeObject->StopMotor();
	}
}
void MotorSafetyHelper :: Check ( ) { if ( ! m_enabled ) return ; if ( m_stopTime < Timer :: GetFPGATimestamp ( ) ) { m_safeObject -> StopMotor ( ) ; } }
Check if this motor has exceeded its timeout.
Check if this motor has exceeded its timeout .
// TODO: Produce an error for the driver station in the case of a timeout.