Microsoft Developer Network > Forums Home > Archived Forums Forums > Microsoft ESP Platform Development (Archived) > SimConnect FSX setting the displayed altitude indication.

Locked SimConnect FSX setting the displayed altitude indication.

  • Thursday, October 29, 2009 12:42 AM
     
     

    I've been task with creating software which will interface into flight sim 10 allowing us to alter the information the instruments display.  This is for training personel in the use of aircraft related test equipment.

    Currently we are trying to get - VOR/ILS testsets (including marker beacons), Pitot/Static test set, IFF/transponder test sets.

    At present we have some of this functioning through the use of FSUIPC and simconnect however we are actually shifting the aircrafts positionial data alt long etc to simulate this.

    I'm trying to achieve the same thing but without shifting the aircraft around.  I have noted that SimConnect appears to be able to do this but I'm having problems.

    Lets just start with one - hopefully the answer will olve the problems for the rest.

    The marker beacons have a settable flag on them, but when I try it does nothing.

    MARKER BEACON STATE Marker beacon state:
    0 = None
    1 = Outer
    2 = Middle
    3 = Inner
    Enum Y
    INNER MARKER Inner marker state Bool Y
    MIDDLE MARKER Middle marker state Bool Y
    OUTER MARKER Outer marker state Bool Y

    In this case how would I get the middle marker light to turn on without being over the actual marker?

All Replies

  • Friday, June 25, 2010 1:54 PM
     
     

    You cannot change the state of internal simulation variables.  The only way to do this would be to move the aircraft or apply events to the systems that then cause those variables to reflect the values you want.

    The only other way around this, without moving or flying your aircraft in such a way as to set those variables accordingly, would be to either edit the gauges (possible with XML gauges only) or create new ones (C or XML) so that they show custom variables (L:vars in XML, regular C variables in C/C++) instead of the sim vars.  Then you just need to write whatever program/dll you like to interface and change them, the easiest probably being a SimConnect shared client data area.

    Si