• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 Autopilot override

Messages
1,468
Country
italy
Code:
<Click>(A:AUTOPILOT YAW DAMPER,bool) 1 == if{ (A:AUTOPILOT MASTER, bool) 1 == if{ 0 (&gt;L:AP ON,number) } els{ 1 (&gt;L:AP ON,number) } 0 (&gt;K:AP_MASTER) 1 (&gt;K:AP_ALT_HOLD_ON) 0 (&gt;K:AP_ALT_VAR_SET_ENGLISH) (A:Vertical speed,feet per minute) (&gt;K:AP_VS_VAR_SET_ENGLISH) }</Click>

This code prevents the AP switch being engaged without the yaw damper being engaged first. However, it is overridden by the button on the control column. Is there any way I can prevent that?
Ideally the button on the control column should only turn the AP off.

What I'm after is:-
Engagement should only be by a manual switch on the AP unit. And only if the yaw dampers are engaged first.
Disengagement -Automatically (system controlled-seems to work!) / Manually (by manual switch on AP unit or button on control column)

I need somehow to control the toggle from the control column. so that it fails to turn on the AP if the yaw dampers are not engaged.
 
Thanks Tom,
I'll have to do a lot of experimentation! It's a tricky one as the command from the stick is only a toggle on/off. (I want that to only be an Off command!) Then there's the switch on the unit which works both ways and also a system disconnect in case of upset or landing.
I think it's easier to design the real thing!!
 
Last edited:
Is the event (>K:AUTOPILOT_OFF) not working?
Actually Bill, That's not being used.
There are two instances of 0 (&gt;K:AP_MASTER) one as part of autoland code and the other governing the AP switch on the AP unit itself.
In the first case I could probably change 0 (&gt;K:AP_MASTER) to (>K:AUTOPILOT_OFF) as that disconnects the AP at the end of the autoland sequnce.

The second cased is the switch on the unit. So I imagine that will have to be rewritten to include (>K:AUTOPILOT_OFF) and (>K:AUTOPILOT_ON)
The third problem is how to trap the button command sent from the control column. Perhaps if I explore Tom's suggestion that could be made to work.

I do use (>K:AUTOPILOT_OFF) elsewhere as part of the stick pusher activation. So yes, it does work!!
Thanks in advance for any ideas.

Code:
(A:RADIO HEIGHT,FEET) 11 &lt; if{ 0 (&gt;L:AP Var9,number) 0 (&gt;K:AP_LOC_HOLD_OFF) 0 (&gt;K:AP_ALT_HOLD_OFF) 0 (&gt;K:AP_ALT_VAR_SET_ENGLISH) 0 (&gt;K:AXIS_ELEVATOR_SET) 0 (&gt;K:YAW_DAMPER_OFF) 0 (&gt;L:AT ENABLE,number) (A:AUTOPILOT MASTER, bool) 1 == if{ 0 (&gt;L:AP ON,number) 0 (&gt;K:AP_MASTER) } }

Code:
<Tooltip ID="TOOLTIPTEXT_AUTOPILOT_MASTER"/>
         <Cursor Type="Hand"/>
         <Click>(A:AUTOPILOT MASTER, bool) 1 == if{ 0 (&gt;L:AP ON,number) } els{ 1 (&gt;L:AP ON,number) } 0 (&gt;K:AP_MASTER) 1 (&gt;K:AP_ALT_HOLD_ON) 0 (&gt;K:AP_ALT_VAR_SET_ENGLISH) (A:Vertical speed,feet per minute) (&gt;K:AP_VS_VAR_SET_ENGLISH)</Click>
 
Latest: I was able to use a couple of variables that set themselves from 0 to 1 and back when the AP switch was operated. But, didn't change if the AP was commanded from the control column. So in the end it was quite easy to trap. However, a small niggle remains. That is, if the Control column button is operated when the AP is off the AP switch flicks on and off. Ideally I would like it to stay in the off position in that instance. But of course when the AP is on the control column button correctly switches the AP off. The switch flicking on and off is not correct as in reality the switch only responds to the control column input when in the on position.
 
Back
Top