NextAnalogInput
Parameters
A lambda that resolves and returns the underlying AnalogInput.
An optional transformation applied to the normalized voltage ratio (raw voltage divided by maxVoltage) before it is exposed via value. Defaults to the identity function.
The voltage that corresponds to a normalized value of 1.0. Defaults to 3.3 volts.
Creates a NextAnalogInput by looking up the AnalogInput in the hardware map by its configured name.
Parameters
The name of the analog input device as configured in the hardware map.
An optional transformation applied to the normalized voltage ratio before it is exposed via value. Defaults to the identity function.
The voltage that corresponds to a normalized value of 1.0. Defaults to 3.3 volts.
Creates a NextAnalogInput directly from a NextLynxModule and analog channel number, bypassing the hardware map.
Parameters
The Lynx module whose analog controller the input is attached to.
The analog channel index, must be in the range [0, 3].
An optional transformation applied to the normalized voltage ratio before it is exposed via value. Defaults to the identity function.
The voltage that corresponds to a normalized value of 1.0. Defaults to 3.3 volts.
Throws
if channel is not in the range [0, 3].