code/WPILib/CANJaguar.cpp
/**
 * Get the status of any faults the Jaguar has detected.
 * 
 * @return A bit-mask of faults defined by the "Faults" enum.
 */
Get the status of any faults the Jaguar has detected.

@return A bit-mask of faults defined by the "Faults" enum.
Get the status of any faults the Jaguar has detected . @return A bit - mask of faults defined by the " Faults " enum .
UINT16 CANJaguar::GetFaults()
{
	UINT8 dataBuffer[8];
	UINT8 dataSize;
	getTransaction(LM_API_STATUS_FAULT, dataBuffer, &dataSize);
	if (dataSize == sizeof(UINT16))
	{
		return unpackINT16(dataBuffer);
	}
	return 0;
}
UINT16 CANJaguar :: GetFaults ( ) { UINT8 dataBuffer [ 8 ] ; UINT8 dataSize ; getTransaction ( LM_API_STATUS_FAULT , dataBuffer , & dataSize ) ; if ( dataSize == sizeof ( UINT16 ) ) { return unpackINT16 ( dataBuffer ) ; } return 0 ; }
Get the status of any faults the Jaguar has detected.
Get the status of any faults the Jaguar has detected .