setNominalVoltageSensor

open fun setNominalVoltageSensor(@NonNull nominalVoltageSensorMapping: HardwareMap.DeviceMapping<VoltageSensor>)

Sets a voltage sensor to use for nominal power calculation. See setNominalVoltage to set a nominal voltage directly, defaults to 12V.

Parameters

nominalVoltageSensorMapping

the sensor mapping to use for nominal voltage calculation, usually hardwareMap.voltageSensor