May 17, 20206 yr I found this description in pilatus's manual (7-34-8): Quote A/P DISENG caution is delayed 3 seconds in order to prevent aural warning conflict with the autopilot system. A/P DISENG caution goes off after 30 seconds. So I dig in the xml and RPN Scripting (and mostly by coping code from other place), to make it work like this. in GAUGEPC12\Gauge_Anum_DOWN_PC12V4.xml: under: <Image id="Gauge_Anum_PC12_BG" Name="Gauge_Anum_PC12_BGNOP"> <Transparent>True</Transparent> </Image> Add: (shold NOT included in <image>, I think it should start like line15 or so) <Update> <Script> (A:AUTOPILOT MASTER,BOOL) 0 != if{ 0 (>L:AUTOPILOT_MASTER_TIMER,number) } els{ (L:AUTOPILOT_MASTER_TIMER,number) ++ (>L:AUTOPILOT_MASTER_TIMER,number) } </Script> </Update> And then, find <Element id="Gauge_Anum_PC12_AP_DISENG"> ,edit the whole <Element> entry into <Element id="Gauge_Anum_PC12_AP_DISENG"> <FloatPosition>0.000,0.000</FloatPosition> <Visibility>(A:AUTOPILOT MASTER,BOOL) 0 == and (L:AUTOPILOT_MASTER_TIMER,number) 0 > (L:AUTOPILOT_MASTER_TIMER,number) 18 6 * > (L:AUTOPILOT_MASTER_TIMER,number) 18 66 * < and</Visibility> <Image id="Image" Name="Gauge_Anum_PC12_AP_DISENG.bmp"> <Transparent>True</Transparent> </Image> </Element> Also, to synchronize the Master Caution Light. go to GAUGEPC12\Gauge_Anum_MASTER_CAUTIONV4.xml ,find <!-- TEST8_MASTER_CAUTION --> Edit them into (A:AUTOPILOT MASTER,BOOL) 0 == (L:AUTOPILOT_MASTER_TIMER,number) 0 > (L:AUTOPILOT_MASTER_TIMER,number) 18 6 * > (L:AUTOPILOT_MASTER_TIMER,number) 18 66 * < and and (L:PUSH_TEST8_MASTER_CAUTION,number) 0 == and if{ 1 (>L:TEST8_MASTER_CAUTION,number) } els{ 0 (>L:TEST8_MASTER_CAUTION,number) } (A:AUTOPILOT MASTER,BOOL) 0 == (L:AUTOPILOT_MASTER_TIMER,number) 0 > (L:AUTOPILOT_MASTER_TIMER,number) 18 6 * > (L:AUTOPILOT_MASTER_TIMER,number) 18 66 * < and and ! if{ 0 (>L:PUSH_TEST8_MASTER_CAUTION,number) } Now, when you (or something else*) disengage autopilot, the A/P DISENG light on CAWS along with Master Caution should only illuminate after 3 seconds of delay, and goes off 30 seconds later (with out this mod, the MC will go off 30s later in Bert's mod, that's where I got the code) (*Note, the AP should be disengaged when using pitch trim switch, it's not in the gaugue's logic, but I get it covered by assign both trim switch to autopilot_off control in FSUIPC.) And don't ask why and how it works, I don't know, the RPN scripting drives me crazy....
Archived
This topic is now archived and is closed to further replies.