getMappedPosition

open fun getMappedPosition(@NonNull camLeft: Direction, @NonNull camRight: Direction, @NonNull noDetection: Direction): Direction

getPosition with custom mappings for the camera left, right, and none detections. This is a polyfill for the legacy (renamed) GetTriPositionContourTask to not rewrite logical branches.

Return

the mapped direction

Parameters

camLeft

the direction to return if the contour is on the left side of the camera

camRight

the direction to return if the contour is on the right side of the camera

noDetection

the direction to return if there are no contours on the camera for minimum withNoDetectionPersistenceTime time