code/WPILib/CANJaguar.cpp
/**
 * Get the voltage at the battery input terminals of the Jaguar.
 * 
 * @return The bus voltage in Volts.
 */
Get the voltage at the battery input terminals of the Jaguar.

@return The bus voltage in Volts.
Get the voltage at the battery input terminals of the Jaguar . @return The bus voltage in Volts .
float CANJaguar::GetBusVoltage()
{
	UINT8 dataBuffer[8];
	UINT8 dataSize;
	getTransaction(LM_API_STATUS_VOLTBUS, dataBuffer, &dataSize);
	if (dataSize == sizeof(INT16))
	{
		return unpackFXP8_8(dataBuffer);
	}
	return 0.0;
}
float CANJaguar :: GetBusVoltage ( ) { UINT8 dataBuffer [ 8 ] ; UINT8 dataSize ; getTransaction ( LM_API_STATUS_VOLTBUS , dataBuffer , & dataSize ) ; if ( dataSize == sizeof ( INT16 ) ) { return unpackFXP8_8 ( dataBuffer ) ; } return 0.0 ; }
Get the voltage at the battery input terminals of the Jaguar.
Get the voltage at the battery input terminals of the Jaguar .