Jump to content
The simFlight Network Forums

lamdid

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by lamdid

  1. This is the sentence I'm having trouble understanding! (I may be a bit limited, sorry): .... But if you now want to add an int, which is 4-bytes, you cannot add to A001 as that is not on a 4-byte offset boundary....

    then I understand this: the offset addresses the END of the area allocated by the size at this offset, and not the start?

  2. Hello everyone, would someone be kind enough to explain to me the meaning of the following sentence (found on page 34 of the FSUIPC For Advanced Users documentation in the paragraph 'Adding Simulator variables (simvars) to FSUIPC offsets'):
    "Note also that the offset needs to be bound to the size. This means that if the size is 8, the last offset digit needs to be 0 or 8, if the size is 4, the last offset digit needs to be 0, 4, 8 or C, etc (but not for string types)."

    Indeed I would have simply imagined that it is the following offset which had to take into account the size of the one which precedes it.

    But this sentence makes me doubt!? Do you have the explanation, thank you

  3. why some offsets variables that exist via simconnect,

    especially the new Drone specific ones (e.g. 'DRONE CAMERA FOLLOW' or 'DRONE CAMERA LOCKED' or 'Toggle Plane Controls' in drone mode)

    still don't appear in the list of offsets FSUIPC7 (and FSInterrogate) variables ?

    Is there a way to address them directly in vb.net without going through an integration of SimConnect APIs?

    Thank you

  4. hello Pete & John,
    I just installed version 7.0.0-Beta> Build September 14, 2020, to take advantage of the changes concerning the 'Pause' Updates.
    I notice that it still does not work for me: I only have 2 responses of the offset 0x264 => 0 or 4 for 'ESC' but no reaction regarding the Dynamic PAUSE ('Pause' key of FS2020) ,
    Do you think this is normal?
    Thank you beforehand,
    Didier

  5. Hello Paul,
    It's great what you did for me. This closes long hours of endless brain teasers! I could not get through a lot of tests.
    I thank you very much for your explanations very precise and effective because it works very well. It is a BIG thorn of the foot that you take from me.
    You were right for the space after the 'L: _'; It does not exist in my mcro file, but it was transcribed by error when copying / pasting in the post.
    Thank you and congratulations to Peter (who directed me to you), and to you Paul for your seriousness and for the rapidity with which you react ...
    Didier Lamant

  6. Hello Paul,

    I do not know if it is well expressed in English but I will try

    In my VB .NET code
    I have used up to now only offset like the followings (recovered in examples):
         Dim Compass As Offset (Of Double) = New FSUIPC.Offset (Of Double) (& H2CC)
         Dim pause As Offset (Of Short) = New FSUIPC.Offset (Of Short) (& H262, True)
    and all is ok but ...


    Now for interfacing with a ARDUINO for my panel deported, I would like to send a request on a macro named "MD530F.MCRO" (which is in my \ Modules folder),
      - I do not know how to declare in the code of my program (.NET) the type of offset '0D70' (ASCIIZ?!)
      - and how to use this type of offset in my program to send to FSUIPC to execute the line 3 of the
    Macro file named "MD530F.MCRO"

    Contents of the file 'MD530F.MCRO':
    1 = L: B407_Eng_Start_Switch = Tog
    2 = L: B407_Eng_Start_Switch = Set, 1
    3 = L: key_on = Tog
    4 = L: onoff = Tog
    5 = L: B407_Master_Battery_Switch = Tog
    6 = L: B407_Navlight_Switch = Tog
    7 = L: Spare_3 = Tog
    8 = L: idle eng = Tog
    9 = L: CAP10 = Tog
    Thank you for your help, because I can not find a single example on this subject since many hours of research
    Didier

  7. OK Peter, Thank you

    I do not know if it is well expressed in English but I will try

    In my VB .NET code
    I have used up to now only offset like the followings (recovered in examples):
         Dim Compass As Offset (Of Double) = New FSUIPC.Offset (Of Double) (& H2CC)
         Dim pause As Offset (Of Short) = New FSUIPC.Offset (Of Short) (& H262, True)

    Now with Offset '0D70',
      - I do not know how to declare in the code of my program (.NET) the type of offset '0D70' (ASCIIZ?!)
      - and how to use this type of offset in my program to send to FSUIPC to execute the line 3 of the
    Macro named "MD530F.MCRO" (which is in my \ Modules folder)

    Contents of the file 'MD530F.MCRO':
    1 = L: B407_Eng_Start_Switch = Tog
    2 = L: B407_Eng_Start_Switch = Set, 1
    3 = L: key_on = Tog
    4 = L: onoff = Tog
    5 = L: B407_Master_Battery_Switch = Tog
    6 = L: B407_Navlight_Switch = Tog
    7 = L: Spare_3 = Tog
    8 = L: idle eng = Tog
    9 = L: CAP10 = Tog
    Thank you for your help, because I can not find a single example on this subject since many hours of research
    Didier

  8. The program: how I told you it is realized (in .NET VB), and works very well. The PC also works very well.
    My only request was to transmit from my program to FSUIPC a request to execute a macro (to activate a switch that is specific to a helicopter).
    But I understand that it is difficult to understand (I go through a translator, because I am French), and it seems that your time is precious ....

    I thank you all the same for the time granted,
    Didier Lamant

  9. Hello Peter,

    I am sorry to disturb you for a question that may seem a bit superfluous, but I resign myself to it after long days of searching without success.

    I developed a .NET app that allows me to interface my ARDUINO with FSUIPC5 (for a Remote Panel).

    Everything works fine except that I need to call a macro registered under FSUIPC:
    In a 'file.mcro', under the line "3 = L: key_on = Tog"

    I tried by assigning a key to it in FSUIPC, but it is only very rarely perceived by FSUIPC (I have to wait at least 10 seconds between each switch movement!)

    I understood by reading on the forum that it was better to refer to the offset 0D70 but I can not find any example of use of this offset:
    How to declare it and how to call it by passing it parameter of the name of the macro.
    By thanking you in advance for your help,

    Didier Lamant

  10. Hello Peter, I have been using FSUIPC for many years. I have been experiencing the following problem since I bought the new version 5 for P3Dv4:

    My config: 1 PC Server for P3D and 1 PC Client for my remote panels

    WideFsClient connects well with FSUIPC5, but the apps installed on the client (FsXpand and FsPanel) no longer start, msg "error: 9, index outside the range".

    I do not know if the following may give you a hint, but the only way I have found to get around this problem is to start P3Dv3.4 (32bits) initially to connect to the remote PC via WideFs and start the client PC apps. Then I stop P3D(32bits) and then start P3Dv4(64bits). I get an msg which tells me that an instance of FSUIPC is already running in the process, but the connection with WideFS on the CLient is still established and the remote apps that were already open resume their dialogue correctly via WideFs and FSUIPC 5.
    Thanking you in advance for your reply
    Didier Lamant

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