Jump to content
The simFlight Network Forums

Gwénaël Tan

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Gwénaël Tan

  1. Hi,

     

    I find a good solution, I use

     private Offset<short> pause = new Offset<short>(0x0262, true); // Example of a write only offset.
    
    pause.Value = 1;
    

    after the slewMode.value=0;

     

    And it's good for me. Because with my other program I need a pause button, like this I can turn off the pause mode.
    Thank you again for your help. :)

     

    Gwenael

  2. Hi Paul,

     

    Thank you for your answer. It's a mistake from me, i would like to write 1000meter :)

    And a double mistake, so sorry, I use this offset.

    private Offset<long> playerAltitude = new Offset<long>(0x0570); // Offset for moving the plane
    

    So I've tried the solution two but the plane is still on the runway.

     

    Yes, I have the "FSUIPC4 Offset Status.pdf", but I'm little confuse with this. sorry. I work on this every day to progress :)

     

    Thank you again.
    Gwenael

  3. Hello,

     

    To start, I'm using v4.934 of FSUIPC.

     

    I try to change altitude of the plane. I test that with an example of FSUIPC of use. It's FSUIPCClientExample_CSharp project.

    slewMode.Value = 1;
    FSUIPCConnection.Process();
    // Make a new point representing the centre of the threshold for 27L
    FsLatitude lat = new FsLatitude(51.464943d);
    FsLongitude lon = new FsLongitude(-0.434046d);
    FsLatLonPoint newPos = new FsLatLonPoint(lat, lon);
    // Now move this point 150 metres up the runway
    // Use one of the OffsetBy methods of the FsLatLonPoint class  
    double rwyTrueHeading = 269.7d;
    newPos = newPos.OffsetByMetres(rwyTrueHeading, 150);
    // Set the new position
    playerLatitude.Value = newPos.Latitude.ToFSUnits8();
    playerLongitude.Value = newPos.Longitude.ToFSUnits8();
    // set the heading and altitude
    playerAltitude.Value = 1000; // Here I try to put the plane over the runway
    FSUIPCConnection.Process();
    playerHeadingTrue.Value = (uint)(rwyTrueHeading * (65536d * 65536d) / 360d);
    FSUIPCConnection.Process();
    // Turn off the slew mode
    slewMode.Value = 0;
    FSUIPCConnection.Process();
    // Refresh the scenery
    sendControl.Value = REFRESH_SCENERY;
    FSUIPCConnection.Process();
    // Reenable the timers
    this.timer1.Enabled = true;
    this.AIRadarTimer.Enabled = this.chkEnableAIRadar.Checked;
    FSUIPCConnection.Process();
    

    So I try to put the plane at 1000feet with this line : playerAltitude.Value = 1000;

    But the plane is still on the runway. I don't understand why.

    I use this offset :

    private Offset<long> playerAltitude = new Offset<long>(0x0570); // Offset for moving the plane

    Thank you in advance for your help.

    Regards,

     

    Gwenael

  4. Hello,

     

    I use GStepControl program V10, directly downloaded from the flightillusion website.

    I try to create new function.

    When I would like to read the value of the function. (when I click on the red square).

    it's always 0.0000 in Minimun Raw read and Maximun Raw read !
    so I can't define correctly all my new functions.

     

    Somebody have the same problem?

     

    Thanks in advance.

  5. Hello,

     

    I'm trying to make the Caution/warning Light Panel(CWP) of the AS 350 (see picture)

     

    7iMXXQJ.jpg

     

    For example, TWT grip is twist grip, I've search in FSUIP4 Offsets Status.pdf but I can't find this. Or MGB TEMP, main gear box temperature too.
    Do you have an idea why ?
    I use for PITOT, offset 029C. For DOOR, I use 3367. The both work correctly.
    But for other example, for fuel it's 3BDF from Panel failure modes , or  from Fail mode 0B6C ?

    Thank you in advance for your reply.

     

    For information, to do this Caution/warning Light Panel(CWP), I use a I/O Modul (GSA 10) from flightillusion. So I use their program, GSTEPControl program V10. My version of FSUIPC is 4.928.

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