GoFlight MCP Pro true 0) { r ~= padChar; padCount -=1; } for (var i=0; i < size(s); i += 1) { if (s[i] == `.`) { # set the high bit to correspond to the decimal var lastIndex = size(r) - 1; r[lastIndex] = r[lastIndex] + 0x80; } elsif (s[i] == `-`) { r ~= chr(0x40); } else { var digitCode = s[i] - `0`; r ~= chr(translateDigitToSevenSegment[digitCode]); } } return r; } var altitudeAlphanumeric = func() { var alt = getprop("/autopilot/settings/target-altitude-ft"); var altStr = sprintf("%d", alt); return encodeString(altStr, 5); } var headingAlphanumeric = func() { var hdg = getprop("/autopilot/settings/heading-bug-deg"); return encodeString(sprintf("%d", hdg), 3); } var courseAlphanumeric = func() { var crs = getprop("/instrumentation/nav[0]/radials/selected-deg"); return encodeString(sprintf("%d", crs), 3); } var course2Alphanumeric = func() { var crs = getprop("/instrumentation/nav[1]/radials/selected-deg"); return encodeString(sprintf("%d", crs), 3); } var speedAlphanumeric = func() { var spd = getprop("/autopilot/settings/target-speed-kt"); return encodeString(sprintf("%d", spd), 5); } var vspeedAlphanumeric = func() { var vs = getprop("/autopilot/settings/vertical-speed-fpm"); return encodeString(sprintf("%d", vs), 5); } var ledState = func() { if (activeChannel == 1) return chr(0x04); return chr(0x2); } ]]> rel-dial 00 11 25 310 420 property-adjust /autopilot/settings/target-altitude-ft 100 0 rel-dial-1 property-adjust /autopilot/settings/heading-bug-deg true 0 359 00 11 25 310 420 rel-dial-2 property-adjust /instrumentation/nav[0]/radials/selected-deg true 0 359 00 11 25 310 420 rel-dial-3 property-adjust /autopilot/settings/vertical-speed-fpm 10 00 11 25 310 420 rel-dial-4 property-adjust /autopilot/settings/target-speed-kt 0 00 11 25 310 420 rel-dial-5 property-adjust /instrumentation/nav[1]/radials/selected-deg true 0 359 00 11 25 310 420 9 /autopilot/settings/target-altitude-ft altitudeAlphanumeric 7 /autopilot/settings/heading-bug-deg headingAlphanumeric 3 /instrumentation/nav[0]/radials/selected-deg courseAlphanumeric 11 /autopilot/settings/vertical-speed-fpm vspeedAlphanumeric 5 /autopilot/settings/target-speed-kt speedAlphanumeric 13 /instrumentation/nav[1]/radials/selected-deg course2Alphanumeric led-misc 1 /gear/gear[0]/indicator-servicable /gear/gear[0]/position-norm 0.9 0 /gear/gear[0]/indicator-servicable /gear/gear[0]/position-norm 0.9 button-1 nasal button-2 nasal button-3 nasal button-4 nasal button-5 nasal button-6 nasal button-7 nasal button-8 nasal Speed button-9 nasal button-10 Level Change nasal button-11 Heading nasal button-12 Approach nasal button-13 Altitude nasal button-14 Vertical Speed nasal button-15 Disengage Bar nasal button-16 F/O FD Enable nasal button-17 Altitude Intervention nasal button-18 CWS-A nasal button-19 CWS-B nasal button-20 IAS knob push nasal button-21 HDG knob push nasal button-22 Altitude Knob Push nasal button-23 Captain's FD Enable nasal button-24 N1 select nasal button-25 VNAV nasal button-26 LNAV nasal button-27 CMD A nasal button-28 CMD B nasal button-29 AT arm nasal button-30 Soeed crossover nasal button-31 Speed intervention nasal button-32 VOR / Localizer nasal