code/WPILib/CANJaguar.cpp
/**
 * Get the version of the firmware running on the Jaguar.
 * 
 * @return The firmware version.  0 if the device did not respond.
 */
Get the version of the firmware running on the Jaguar.

@return The firmware version.  0 if the device did not respond.
Get the version of the firmware running on the Jaguar . @return The firmware version . 0 if the device did not respond .
UINT32 CANJaguar::GetFirmwareVersion()
{
	UINT8 dataBuffer[8];
	UINT8 dataSize;
	getTransaction(0x80000000 | CAN_MSGID_API_FIRMVER, dataBuffer, &dataSize);
	if (dataSize == sizeof(UINT32))
	{
		return unpackINT32(dataBuffer);
	}
	return 0;
}
UINT32 CANJaguar :: GetFirmwareVersion ( ) { UINT8 dataBuffer [ 8 ] ; UINT8 dataSize ; getTransaction ( 0x80000000 | CAN_MSGID_API_FIRMVER , dataBuffer , & dataSize ) ; if ( dataSize == sizeof ( UINT32 ) ) { return unpackINT32 ( dataBuffer ) ; } return 0 ; }
Get the version of the firmware running on the Jaguar.
Get the version of the firmware running on the Jaguar .
// Set the MSB to tell the 2CAN that this is a remote message.