examples/GetDistanceI2cRio/src/LIDARLiteRio.cpp
/*------------------------------------------------------------------------------
  Constructor

  Starts the sensor and I2C.

  Parameters
  ------------------------------------------------------------------------------
  port: I2C port to communication on
  deviceAddress: Default 0x62. Fill in new address here if changed. See
    operating manual for instructions.
  configuration: Default 0. Selects one of several preset configurations.
------------------------------------------------------------------------------*/
Constructor
Starts the sensor and I2C.

Parameters

I2C port to communication on
deviceAddress: Default 0x62. Fill in new address here if changed. See
operating manual for instructions.
configuration: Default 0. Selects one of several preset configurations.
Constructor Starts the sensor and I2C . Parameters I2C port to communication on deviceAddress : Default 0x62 . Fill in new address here if changed . See operating manual for instructions . configuration : Default 0 . Selects one of several preset configurations .
LIDARLite_I2C::LIDARLite_I2C(I2C::Port port, int deviceAddress, int configuration)
    : m_i2c(port, deviceAddress)
{
	deviceBusy = 0;
	referenceOverflow = 0;
	signalOverflow = 0;
	invalidSignal = 0;
	secondaryReturnValid = 0;
	sensorHealth = 0;
	processError = 0;
	status = 0x0;
	reset();
	configure(configuration);
}
LIDARLite_I2C :: LIDARLite_I2C ( I2C :: Port port , int deviceAddress , int configuration ) : m_i2c ( port , deviceAddress ) { deviceBusy = 0 ; referenceOverflow = 0 ; signalOverflow = 0 ; invalidSignal = 0 ; secondaryReturnValid = 0 ; sensorHealth = 0 ; processError = 0 ; status = 0x0 ; reset ( ) ; configure ( configuration ) ; }
Constructor
Starts the sensor and I2C.
Constructor Starts the sensor and I2C .