getMappedPosition

open fun getMappedPosition(@Nullable switchSensor: TouchSensor): Integer

Get the mapped position of a limit switch.

Return

the mapped position of the switch sensor, nullable if not mapped

Parameters

switchSensor

the switch sensor to get the mapped position of, must be mapped