-
Notifications
You must be signed in to change notification settings - Fork 28
Formulas
Also check out Paul Marsh's video on the subject. and Capt Zeen's formula generator.
Listed here are example formulas that can be used to show cockpit data in the Multi Panel or Streamdeck.
Heading: truncate(HSI_HDG*360/65536)
Heading bug: truncate(HSI_HDG_KNOB*360/65536)
Course needle to degrees: truncate(HSI_CRS_KNOB*360/65536)
Left Variometer: Ifless( VARIOMETER_L 56032 ( Ifless( VARIOMETER_L 46858 ( Ifless( VARIOMETER_L 40304 ( Ifless( VARIOMETER_L 35717 ( Ifless( VARIOMETER_L 34406 ( Ifless( VARIOMETER_L 32768 ( Ifless( VARIOMETER_L 31129 ( Ifless( VARIOMETER_L 29818 ( Ifless( VARIOMETER_L 25231 ( Ifless( VARIOMETER_L 18677 ( Ifless( VARIOMETER_L 9503 ( (VARIOMETER_L0,00105)+-30) ((0,00109(VARIOMETER_L-9503))+-20))) ((0,00076*(VARIOMETER_L-18677))+-10))) ((0,00065*(VARIOMETER_L-25231))+-5))) ((0,00076*(VARIOMETER_L-29818))+-2))) ((0,00061*(VARIOMETER_L-31129))+-1))) ((0,00061*(VARIOMETER_L-32768))+0))) ((0,00076*(VARIOMETER_L-34406))+1))) ((0,00065*(VARIOMETER_L-35717))+2))) ((0,00076*(VARIOMETER_L-40304))+5))) ((0,00109*(VARIOMETER_L-46858))+10))) ((0,00105*(VARIOMETER_L-56032))+20))
Barometric Altitud: truncate((VD_10K_L_100/65536)*10000)
QFE: truncate ((VD_10K_L_PRESS/508)+661)
IAS: Ifless( IAS_L 63634 ( Ifless( IAS_L 56557 ( Ifless( IAS_L 49282 ( Ifless( IAS_L 41942 ( Ifless( IAS_L 34734 ( Ifless( IAS_L 27394 ( Ifless( IAS_L 20054 ( Ifless( IAS_L 13041 ( Ifless( IAS_L 4587 ( Ifless( IAS_L 2228 ( IAS_L0,00449 ) ((0,0212(IAS_L-2228))+0))) ((0,00591*(IAS_L-4587))+50))) ((0,00713*(IAS_L-13041))+100))) ((0,00681*(IAS_L-20054))+150))) ((0,00681*(IAS_L-27394))+200))) ((0,00694*(IAS_L-34734))+250))) ((0,00681*(IAS_L-41942))+300))) ((0,00687*(IAS_L-49282))+350))) ((0,00707*(IAS_L-56557))+400))) ((0,00789*(IAS_L-63634))+450))
Variometer: Ifless( VARIOMETER_L 56032 ( Ifless( VARIOMETER_L 46858 ( Ifless( VARIOMETER_L 40304 ( Ifless( VARIOMETER_L 35717 ( Ifless( VARIOMETER_L 34406 ( Ifless( VARIOMETER_L 32768 ( Ifless( VARIOMETER_L 31129 ( Ifless( VARIOMETER_L 29818 ( Ifless( VARIOMETER_L 25231 ( Ifless( VARIOMETER_L 18677 ( Ifless( VARIOMETER_L 9503 ( (VARIOMETER_L0,00105)+-30) ((0,00109(VARIOMETER_L-9503))+-20))) ((0,00076*(VARIOMETER_L-18677))+-10))) ((0,00065*(VARIOMETER_L-25231))+-5))) ((0,00076*(VARIOMETER_L-29818))+-2))) ((0,00061*(VARIOMETER_L-31129))+-1))) ((0,00061*(VARIOMETER_L-32768))+0))) ((0,00076*(VARIOMETER_L-34406))+1))) ((0,00065*(VARIOMETER_L-35717))+2))) ((0,00076*(VARIOMETER_L-40304))+5))) ((0,00109*(VARIOMETER_L-46858))+10))) ((0,00105*(VARIOMETER_L-56032))+20))
Radar Altimeter: Ifless ( A_036_RALT 40960 (Ifless ( A_036_RALT 29950 (A_036_RALT/299,5) ((0,0181*(A_036_RALT-29950))+100)) ) ((0,02034*(A_036_RALT-40960))+300))
Heading: ((UGR_4K_HEADING_L*0,00009587)+0) * 57,282
Course: ifmore ( (((UGR_4K_COMMANDED_COURSE_L/65536)*360) + ((UGR_4K_HEADING_L/65536)*360)) 359 (((UGR_4K_COMMANDED_COURSE_L/65536)*360) + ((UGR_4K_HEADING_L/65536)*360)-360) (((UGR_4K_COMMANDED_COURSE_L/65536)*360) + ((UGR_4K_HEADING_L/65536)*360)) )
Variometer: ((VARIO_SPEED/65536)*60)-30
Radar altimeter: Ifless ( RALT_ALT 61138 (Ifless ( RALT_ALT 54591 ( Ifless ( RALT_ALT 49420 ( Ifless ( RALT_ALT 30350 ( Ifless ( RALT_ALT 12045 (RALT_ALT/602,25) ((0,00163*(RALT_ALT-12045))+20)) ) ((0,00524*(RALT_ALT-30350))+50)) ) ((0,00967*(RALT_ALT-49420))+150)) ) ((0,01527*(RALT_ALT-54591))+200)) ) 300 )
IAS: truncate((AIRSPEED*350)/65536)
Heading: (HSI_HDG/65536)*360
Barimetric Altitude: truncate((ALT_1000M/65536)*10000)
QFE press: truncate(((ALT_QFE_PRESS/65536)*200)+600)
Barometric Altitude: (PALT_10000/65535)*100000
QFE (last digit is decimal): ((PALT_PRESS*0,00004425)+28,1)*10
Radar Altimeter: Ifless( RALT_NEEDLE 48916 ( Ifless( RALT_NEEDLE 42533 ( Ifless( RALT_NEEDLE 35822 ( Ifless( RALT_NEEDLE 31848 ( Ifless( RALT_NEEDLE 16118 ( (RALT_NEEDLE0,006204)+0) ((0,006279(RALT_NEEDLE-16118))+100))) ((0,07549*(RALT_NEEDLE-31848))+200))) ((0,07554*(RALT_NEEDLE-35822))+500))) ((0,07722*(RALT_NEEDLE-42441))+1000))) ((0*(RALT_NEEDLE-48916))+1500))
Vertical Velocity: Ifless( VVI_P 59309 ( Ifless( VVI_P 50462 ( Ifless( VVI_P 44564 ( Ifless( VVI_P 20971 ( Ifless( VVI_P 15073 ( Ifless( VVI_P 6226 ( (VVI_P0,16062)+-4000) ((0,16955(VVI_P-6226))+-3000))) ((0,08477*(VVI_P-15073))+-1500))) ((0,08477*(VVI_P-20971))+-1000))) ((0,08477*(VVI_P-44564))+1000))) ((0,16955*(VVI_P-50462))+1500))) ((0,16062*(VVI_P-59309))+3000))
IAS: Ifless( IAS_NOSE 54066 ( Ifless( IAS_NOSE 36044 ( Ifless( IAS_NOSE 28835 ( Ifless( IAS_NOSE 25886 ( Ifless( IAS_NOSE 20971 ( Ifless( IAS_NOSE 12452 ( Ifless( IAS_NOSE 4915 ( (IAS_NOSE0,00407)+0) ((0,00133(IAS_NOSE-4915))+20))) ((0,00117*(IAS_NOSE-12452))+30))) ((0,00203*(IAS_NOSE-20971))+40))) ((0,00339*(IAS_NOSE-25886))+50))) ((0,00277*(IAS_NOSE-28835))+60))) ((0,00222*(IAS_NOSE-36044))+80))) ((0,00262*(IAS_NOSE-54066))+120))
Heading: (GMC_HDG/65535)*360
Course Mark: ifmore ( ((360-((GMC_HDG_MARKER/65535)*360))+((GMC_HDG/65535)*360)) 359 (((360-((GMC_HDG_MARKER/65535)*360))+((GMC_HDG/65535)*360))-360) ((360-((GMC_HDG_MARKER/65535)*360))+((GMC_HDG/65535)*360)) )
VSI: (PLT_VSI_NEEDLE-32767.5) * ifless (PLT_VSI_NEEDLE 32767.5 (ifmore(PLT_VSI_NEEDLE 16000((log10 1.1)*log10 55)(ifmore(PLT_VSI_NEEDLE 7500((log10 1.125)*log10 80)(ifmore(PLT_VSI_NEEDLE 2500(log10 1.4)(.185))))))) (ifless(PLT_VSI_NEEDLE 46800((log10 1.1)*log10 50)(ifless(PLT_VSI_NEEDLE 56000((log10 1.125)*log10 80)(ifless(PLT_VSI_NEEDLE 62000(log10 1.4)(.185))))))))
Speed Neddle: [SPEED_KTS_NEED * 0,01526]
formula for selected altitude tumble on multi panel is : [((ALT_10K_FT_SEL)*10000)+((ALT_1K_FT_SEL)*1000)+((ALT_100_FT_SEL)*100)]
formula for BINGO tumble on multi panel is : [(BINGO_FUEL_1K_KG_SEL1000)+(BINGO_FUEL_100_KG_SEL100)]
formula for accurate FUEL DETOT tumble on multi panel is : [((FUEL_DETOT_THOUS * 0,0001528) * 1000)+((FUEL_DETOT_CENTS * 0,0001528) * 100)+((FUEL_DETOT_TENS * 0,0001528) * 10)]
formula for accurate AOA on multi panel is : [AOA_POS*0,00152]
formula for accurate CALIBRATION PRESSURE tumble on multi panel is : [((ALT_BARO_THOUS*0,0001526)1000)+((ALT_BARO_CENTS0,0001526)100)+((ALT_BARO_TENS0,0001526)10)+(ALT_BARO_ONES0,0001526)]
Some gauges' scales are not linear. The above formula handles that. To generate formulas like these you can use Capt Zeen's formula generator
With your support, we're able to buy software/hardware related to these projects.