Skip to navigation


Dashboard: mirrorSegment

Name: mirrorSegment [Show more] Type: Variable Category: Dashboard Summary: Lookup table for working out which mirror segment a car should appear in Deep dive: Wing mirrors
Context: See this variable in context in the source code References: This variable is used as follows: * UpdateMirrors uses mirrorSegment
.mirrorSegment EQUB &90 / 8 \ Mirror segment 0 (left mirror, outer segment) \ So -14.5 <= yaw < -13.5 (as &90 / 8 = -112 / 8 = -14) EQUB &88 / 8 \ Mirror segment 1 (left mirror, middle segment) \ So -15.5 <= yaw < -14.5 (as &88 / 8 = -120 / 8 = -15) EQUB &80 / 8 \ Mirror segment 2 (left mirror, inner segment) \ So -16.5 <= yaw < -15.5 (as &80 / 8 = -128 / 8 = -16) EQUB 14 \ Mirror segment 3 (right mirror, inner segment) \ So 14.5 <= yaw < 15.5 EQUB 13 \ Mirror segment 4 (right mirror, middle segment) \ So 13.5 <= yaw < 14.5 EQUB 12 \ Mirror segment 5 (right mirror, outer segment) \ So 12.5 <= yaw < 13.5 EQUB &81, &81 \ These bytes appear to be unused