Jump to content
The simFlight Network Forums

guitar_hero

Members
  • Posts

    6
  • Joined

  • Last visited

Posts posted by guitar_hero

  1. Which 'paid aircraft'? I know that PMDG (with the exception of the NGX which has the lights mapped to different offsets as per the manuals with FSUIPC) and Level-D lights cannot be accessed via standard addressed offsets and assume there will be many others that don't fully integrate themselves like the default aircraft.

    I tried with ATR of Flight One, Wilco Airbus and iFly 737 NGX.

  2. There are at least two interfaces defined in FSUIPC which include a Clear Weather facility: The "Advanced Weather Interface" (AWI), and the "New Weather Interface" (NWI). Each is dealt with in separate ZIPs within the SDK (UIPCAWI and New Weather Interface for FS2004). The NWI is better and is based on normal offset reads and writes. The older AWI uses offset type values but is a command and response system which is now rather superseded, though still supported for older existing programs.

    3324 is the altimeter reading, in feet or in metres according to user selection. It won't be the aircraft altitude unless the pressure is set to the current QNH on the main pilot's altimeter.

    0570 is the actual aircraft altitude AMSL, as defined. It is not dependent on pressure setting unlike the altimeter. I don't know what you mean by "that feeling XDDDD".

    If you want the pressure altitude (PA), that's available too, in offset 34B0.

    Stabilizer trim is elevator trim. There are three control surfaces, aileron, rudder and elevator, and trims for all three. It you look them up you'll find them.

    Pete

    Thanks for your help, Pete!

    The elevator trim show other information or i belive... because the value that i want get it's 4.4 UP or 3.5 DOWN, for example when you are on takeoff, you need put this value in the aircraft. This value gives it the FMC, but i want read value from Aircraft to verify that it's correct

    Regards!

  3. Hi,

    Writing to offsets using my DLL is very clearly explained in the User Guide supplied with the DLL. It is also demonstrated in the example application. Please take some time to go through the materials supplied and learn how the DLL works.

    Briefly, you need to declare the offset (usually at the form or class level):

    private Offset<short> NWICommand = new Offset<short>(0xC800, true);

    (Note that the type is 'short' because the offset is a two-byte integer (see the NewWeather.h file in the FSUIPC SDK). Also the offset should be 0xC800, not 0x0800 (Autopilot Approach Hold) as shown in your sample code.)

    NW_CLEAR represents the value 3 (see the NewWeather.h file in the FSUIPC SDK) so we'll declare that as well at the form (or class) level:

    private readonly short NW_CLEAR = 3;

    Then in your program you just assign the value to the offset and call Process().

            private void ClearWeather()
            {
                NWICommand.Value = NW_CLEAR;
                FSUIPCConnection.Process();
            }

    In a real application you would probably want to keep the weather offsets in their own groups. Grouping is also explained in the User Guide.

    Paul

    :grin::grin::grin::grin::grin::grin::grin: THANKS FOR YOUR HELP!!!! :grin::grin::grin::grin::grin::grin::grin:

  4. Hi programmers, i find this code on this forums but i don't know how to transalete for C# code. The code is it:

    MyWord := NW_CLEAR;
    FSUIPC_Write($0800, 2, @MyWord, your_dw_result);
    FSUIPC_Process(your_dw_result);

    To a C# application. I try it, but c# not recognice the write function into FSUIPCConnection, it only has Process.

    In other hand, anyone has any example to use the NWI, for C#

    Thank for your replies!!!

  5. Hi Pete, i'm a developer based on c#, and i try to do an application, for personal use, and i'm using your FSUIPC.dll.

    I'm trying to make the sim meteorology dissapears, the same way that gets done by the button "Clear All Weather " into FSUIPC, via menu Modules in FS. I searched for an offset to do this in the same way as "Clear All Weather" button, but I did not find anything. I searched in pdf's that sdk brings, with FSInterrogate appliying filters,, on this website... but nothing :unsure::unsure:

    It can be done with some offset listed?

    On the other hand, i using offset nr: 0x3324 to get altituted, sometimes read a value that is far above or not has nothing to do with the aircraft altitude. I want read from 0x3324, because the offset 0x0570 when you put QNH on standar altimeter, it continues read altitude with local QNH, or gave me that feeling XDDDD. Is this true?

    Finally, (sorry so many questions), i want read Stabillizer trim, but I didn't find any offset to do that.

    Thanks for your help!!!

    Bye.

    PD: excuse me for my poor english....:grin::grin:

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.