code/WPILib/CANJaguar.cpp
/**
 * Get the status of the reverse limit switch.
 * 
 * @return The motor is allowed to turn in the reverse direction when true.
 */
Get the status of the reverse limit switch.

@return The motor is allowed to turn in the reverse direction when true.
Get the status of the reverse limit switch . @return The motor is allowed to turn in the reverse direction when true .
bool CANJaguar::GetReverseLimitOK()
{
	UINT8 dataBuffer[8];
	UINT8 dataSize;
	getTransaction(LM_API_STATUS_LIMIT, dataBuffer, &dataSize);
	if (dataSize == sizeof(UINT8))
	{
		return (*dataBuffer & kReverseLimit) != 0;
	}
	return 0;
}
bool CANJaguar :: GetReverseLimitOK ( ) { UINT8 dataBuffer [ 8 ] ; UINT8 dataSize ; getTransaction ( LM_API_STATUS_LIMIT , dataBuffer , & dataSize ) ; if ( dataSize == sizeof ( UINT8 ) ) { return ( * dataBuffer & kReverseLimit ) != 0 ; } return 0 ; }
Get the status of the reverse limit switch.
Get the status of the reverse limit switch .