Jump to content
The simFlight Network Forums

Scotfleiger

Members
  • Posts

    390
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by Scotfleiger

  1. On 25 June 2016 at 8:36 PM, Pete Dowson said:

    I just checked, and, in fact, if you try to read an L:var which doesn't exist you actually get zero, not "nil" -- there's an error in my code there, which I will correct in the next FSUIPC update.  Currently you can only check whether it exists or not by using

    n = ipc.getLvarId("name")

    which will return nil if it doesn't exist.

    But from what you say, the "nil" error you are getting is because it thinks the function you are calling doesn't exist. There's no library called "pic", so that could be one reason -- or is that another autocorrection gone wrong?

    Also is isn't "readLVar" but "readLvar" -- another autocorrection? Surely not? Lua is case sensitive -- every character must be correctly upper or lower case.

    If you really are using ipc.readLvar then I think you need LINDA support. I don't know what it is doing to get that screwed up, I don't know it at all I'm afraid.

    BTW use the built-in FSUIPC assignable control "List local panel variables" to get a list of all the valid L:vars for the current aircraft, and their current values.

    Pete

    Thank you for the confirmation and information Pete. I was beginning to pull my hair out (and there is not much on top to come out).

    PS. You are correct. I was trying to type the non-word "ipc" but autocorrect kept changing it to "pic" fast they I could see that it was doing it. 

  2. Sorry forgot paste the lines:

      3554233 ## SimConnect_Text: fWhite=0, 0x3303=0
      3555356 ## SimConnect_Text: fWhite=0, 0x3303=0
      3556339 ## SimConnect_Text: fWhite=0, 0x3303=0
      3557244 ## SimConnect_Text: fWhite=0, 0x3303=0
      3558258 ## SimConnect_Text: fWhite=0, 0x3303=0
      3559147 ## SimConnect_Text: fWhite=0, 0x3303=0

    Pete, LINDA logs its activity to the LINDA Console window through FSUIPC4. This is used for reporting and debugging purposes.

  3. Thank you Pete. It may only be A2A but P3D who have moved the goal posts. A2A may just be using the P3D definition for AP Alt and VS for both platforms.

     

    Looking at the Lockheed Martin definition (http://www.prepar3d.com/SDKv2/LearningCenter/utilities/variables/simulation_variables.html#Aircraft%20Autopilot%20Data):

     

     

    AUTOPILOT ALTITUDE LOCK VAR Selected altitude ("Altitude bug") Feet Y Shared Cockpit

     

    AUTOPILOT VERTICAL HOLD VAR Selected vertical speed ("VSI bug") Feet/minute Y Shared Cockpit

     

    I will inquire further with them.

  4. Hi Pete

     

    I am the support developer for LINDA and have found an interesting issue with the offsets for Autopilot Altitude (07D4) and Vertical Velocity (07F2) with A2A aircraft add ons in FSX and P3D. I wonder what your view is.

     

    The offsets are:

    • 07D4  4 bytes  Autopilot altitude value, as metres*65536
    • 07F2  2 bytes  Autopilot vertical speed value, as ft/min

    ​The altitude is quoted as being in metres and the vertical speed in ft/min.

     

    ​I have found through detailed tests that the conversion of Altitude from metres to feet is required only if the A2A A182 or C172 aircraft are used or when using P3D (alt = round(0x07D4 * 3.2808399 / 65536)). The reverse applies to the Vertical Speed. If not A2A or P3D, VS= round(0x07F2 / 3.2808399).

     

    In all other cases (FSX and non-A2A), the offsets are defined as AP Alt in feet and AP VS in metres/sec. This is opposite from the FSUIPC4 Status of IPC Offsets for FSX document.

     

  5. After over a year with any problems, my joystick HAT POV set up has gone crazy. The view has all of a sudden started resetting itself to the straight ahead (eye point reset) view on releasing the hat switch.  I have tried reassigning the Pan Left/Right/Up/Down to the Hat buttons with repeat in FSUIPC 4.937, but as soon as I release it springs back to view ahead. All FSX assignments have been deleted.

     

    Can anyone suggest what has gone wrong?

     

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