Jump to content

Sign in to follow this  
C2615

CAWS AP DISENG should only last 30s fix (for Bert's mod)

Recommended Posts

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 &gt; (L:AUTOPILOT_MASTER_TIMER,number) 18 6 * &gt; (L:AUTOPILOT_MASTER_TIMER,number) 18 66 * &lt; 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 &gt; (L:AUTOPILOT_MASTER_TIMER,number) 18 6 * &gt; (L:AUTOPILOT_MASTER_TIMER,number) 18 66 * &lt; 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 &gt; (L:AUTOPILOT_MASTER_TIMER,number) 18 6 * &gt; (L:AUTOPILOT_MASTER_TIMER,number) 18 66 * &lt; 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....

  • Like 1
  • Upvote 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    27%
    $6,985.00 of $25,000.00 Donate Now
×
×
  • Create New...