NextDistanceSensor

constructor(initializer: () -> DistanceSensor)

Parameters

initializer

Lazily resolves the backing DistanceSensor.


constructor(name: String)

Constructor to create a NextDistanceSensor using a configuration name.

Parameters

name

The configuration name for the sensor, usually found on the Driver Station.


constructor(module: NextLynxModule, bus: Int)

Constructor to create a NextDistanceSensor using a LynxModule and I2C bus number.

Parameters

bus

The I2C bus number (in the range 0, 3)