code/WPILib/CANJaguar.cpp
/**
 * Get the reference source device for position controller mode.
 * 
 * @return A PositionReference indicating the currently selected reference device for position controller mode.
 */
Get the reference source device for position controller mode.

@return A PositionReference indicating the currently selected reference device for position controller mode.
Get the reference source device for position controller mode . @return A PositionReference indicating the currently selected reference device for position controller mode .
CANJaguar::PositionReference CANJaguar::GetPositionReference(void)
{
	UINT8 dataBuffer[8];
	UINT8 dataSize;
	getTransaction(LM_API_POS_REF, dataBuffer, &dataSize);
	if (dataSize == sizeof(UINT8))
	{
		return (PositionReference)*dataBuffer;
	}
	return kPosRef_None;
}
CANJaguar :: PositionReference CANJaguar :: GetPositionReference ( void ) { UINT8 dataBuffer [ 8 ] ; UINT8 dataSize ; getTransaction ( LM_API_POS_REF , dataBuffer , & dataSize ) ; if ( dataSize == sizeof ( UINT8 ) ) { return ( PositionReference ) * dataBuffer ; } return kPosRef_None ; }
Get the reference source device for position controller mode.
Get the reference source device for position controller mode .