code/WPILib/Accelerometer.cpp
/**
 * Create a new instance of Accelerometer from an existing AnalogChannel.
 * Make a new instance of accelerometer given an AnalogChannel. This is particularly
 * useful if the port is going to be read as an analog channel as well as through
 * the Accelerometer class.
 */
Create a new instance of Accelerometer from an existing AnalogChannel.
Make a new instance of accelerometer given an AnalogChannel. This is particularly
useful if the port is going to be read as an analog channel as well as through
the Accelerometer class.
Create a new instance of Accelerometer from an existing AnalogChannel . Make a new instance of accelerometer given an AnalogChannel . This is particularly useful if the port is going to be read as an analog channel as well as through the Accelerometer class .
Accelerometer::Accelerometer(AnalogChannel *channel)
{
	if (channel == NULL)
	{
		wpi_fatal(NullParameter);
	}
	else
	{
		m_analogChannel = channel;
		InitAccelerometer();
	}
	m_allocatedChannel = false;
}
Accelerometer :: Accelerometer ( AnalogChannel * channel ) { if ( channel == NULL ) { wpi_fatal ( NullParameter ) ; } else { m_analogChannel = channel ; InitAccelerometer ( ) ; } m_allocatedChannel = false ; }
Create a new instance of Accelerometer from an existing AnalogChannel.
Create a new instance of Accelerometer from an existing AnalogChannel .