• 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.

Autopilot Off Toggle Switch

Messages
185
Country
unitedstates
I want to make an xml autopilot off toggle switch. What command do I have to include?

I have a boat that will turn on a wav file with zz keystrokes.

I want a toggle to do it instead of the zz keystrokes.

Thanks, Bob.
 
Have you considered using Doug's Sound Gauge to do this? You'll be able to trigger sounds any way you wish that way, and not have to exploit the A/P disconnect sound.
 
Bob,
The sound gauge will certainly do what you want, but if you just want to use the autopilot, the event you're looking for is AP_MASTER

Doug
 
Thanks. I am not familiar with Doug's sound gauge. What's the filename and where can I get it? Regards, Bob.
 
Bob,
The P3D version is available here, in the resources section. It's actually still listed in the "New Resources" section on the lower right hand portion of the main page.
You can find both the P3D and FSX versions here:
www.douglassdawson.ca
 
I think you are being led up the garden path here.
Your request was for an XML Gauge to turn AP Master on/off so Doug's first post is the one you want, using (>K:AP_MASTER)

HMS Drake (by John MacKay) includes Bugle/General quarters code based on a simple toggle switch (Gear up/down), even though readme says z+z, but you could "borrow" it :)
Gear Switch in Bridge Panel section of Panel.cfg, triggered sounds in sound.cfg and the wavs in sound directory
 
I think you are being led up the garden path here.
Your request was for an XML Gauge to turn AP Master on/off so Doug's first post is the one you want, using (>K:AP_MASTER)

HMS Drake (by John MacKay) includes Bugle/General quarters code based on a simple toggle switch (Gear up/down), even though readme says z+z, but you could "borrow" it :)
Gear Switch in Bridge Panel section of Panel.cfg, triggered sounds in sound.cfg and the wavs in sound directory
Thanks. That's exactly what I want. I'll look for the ship. Regards, Bob.
 
... and making it robust code:
Code:
    (A:AUTOPILOT MASTER,bool) if{ (>K:AP_MASTER) }
Which ensures the code only gives the toggle ON/OFF event when the current state is actually ON (avoiding event flooding too)

Rob
 
Hi Bob,

I agree with Kyrelel that you're asking two separate questions.

Regarding the autopilot switch, nothing left to add except that the default Beech Baron contains an xml gauge called Autopilot Switch.xml. It’s in the Beech_Baron.cab file.

To play sounds using mouse click areas as toggle switches ... Click-On, Click-Off ... you should use Doug Dawson’s sound gauge which can be downloaded from the link provided by Doug in #5, above, together with an xml gauge that you write to control the mouse click areas.
Hi Doug. OK. Thanks. It looks too complicated
It's not as complicated as you may think. To help, I’ve attached an example xml gauge (SoundTest1.xml) with which you can experiment. It has three buttons on it that can be clicked to play three different sounds. Follow the Read Me instructions for installation.

Once you get familiar with Doug’s sound gauge you can make changes to the dsd_xml_sound.ini file as well as the SoundTest1.xml gauge to suit your specific needs.

Hope this helps.

Bob

[edit] I also attach a "tips" page I use to remind me how to set up Doug's sound gauge. Hope it's mostly correct.

Use this in addition to the tips provided by Bjoern in #7 above, and, of course, Doug's documentation.
 

Attachments

Last edited:
Back
Top