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

Airspeed/Mach Bug Problem

Messages
109
I am working on an airspeed bug that points to the selected airspeed/Mach value when autothrottle is engaged. Right now it only works if the airspeed selector is engaged first. The Mach speed selector can then be engaged and the bug will function. Problem being with changes in temperature/altitude of course Mach value changes so the speed selector must again then be pressed followed by the Mach selector, to get the bug lined up properly again. Am looking to simply change the behaviour of the airpeed bug to work when Mach selector is engaged rather than airspeed selector (e.g., the other way around from how it presently works). Ideally it would be best to have it function for either speed or Mach but being that the latter is used in cruise with autopilot on, it would be acceptable to just get it functioning in that manner at least. Code is posted below, many thanks for any assistance.

Code:
               <Element>
                  <Position X="39" Y="90"/>
                  <Image Name="Airspeed_bug.bmp" Bright="Yes" ImageSizes="9,14,17,25">
                     <Axis X="3" Y="7"/>
                  </Image>
                  <Shift>
                     <Value Minimum="-81" Maximum="6">(A:Airspeed select indicated or true, knots) (A:Autopilot airspeed hold var, knots)  -</Value>
                     <Scale Y="1.002"/>
                  </Shift>
               </Element>
 
The nearest way I have done it without a massive amount of calculations is Ratio/Proportion. When adjusting one bug, find its opposite bug. The bug last touched is the primary and vice versa. Basically one does the work outside of the FS autopilot.

Ex.
Use L:Vars for Bugs and a L:Var to tell what bug (IAS or MACH) was adjusted last.
Adjust Bugs via L:Vars not direct AP control.
I adjusted the MACH L:Var bug to where I want it, keep the IAS bug (Local Var, not the AP IAS!) updated in real time. Send L:Var MACH bug to AP MACH hold command var if not equal.
I adjusted the IAS L:Var bug, keep the MACH bug (Local Var, not the AP MACH!) updated in real time. Send L:Var IAS bug to AP IAS hold command var if not equal.
On AP IAS hold engage send IAS bug L:Var to AP IAS hold command var if not equal. IAS bug becomes primary.
On AP MACH hold engage send MACH bug L:Var to AP MACH hold command var if not equal. MACH bug becomes primary.


Barber Pole Mach / Barber Pole IAS = Mach Bug / IAS Bug

It may not be exactly what you are needing but will give you an idea what could be done depending on the aircraft / AP setup.
 
Last edited:
Thanks for the info Spokes, going to give this a try. Figured a simple name change from airspeed to mach or something similar might do, but maybe not.
 
Back
Top