Jump to content
The simFlight Network Forums

masterdPm

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by masterdPm

  1. Hi everyone. I am currently working on a avionics software written in Python. But I am stuck to one thing: the link bitween FSUIPC and the source code. I know that it is possible to use C/C++ code in Python, but I can not make it work. So I was wondering if anyone has already made something like that and would not matter to share it. My avionics software is for my simulator and maybe it will be released if I like it enough (as a freeware). Thanks for your time, and thanks Pete for this wonderful FSUIPC !
  2. Hi, I am currently writing an instructor software for my student association's simulator. (C langage, FSUIPC 3.8.1.0 registered, FSUIPC link opened and working, FS version: 9.1) I'd like to make a replay control box. The thing is that I cannot set a value in the replay flag (offset 0628). I tryed several solution, but everytime I test the software, the simulator is paused. the code is: int SetReplayMode(Uint32 valeur) { DWORD dwResult; FSUIPC_Write(0x0628, 4, &valeur, &dwResult); FSUIPC_Process(&dwResult); return 1; } int SetReplayTime(Uint32 valeur) { DWORD dwResult; FSUIPC_Write(0x062C, 4, &valeur, &dwResult); FSUIPC_Process(&dwResult); return 1; } These functions are called in this order: SetReplayTime(60); SetReplayMode(1); That is my first problem. The second is that I tried to get the COM and NAV frequencies. I read that I am supposed to get, for example 1825 if the frequency is 118.25. I get: COM1: 8853 (so 188.53 instead of 122.95) - offset 034E COM2: 6544 (so 165.44 instead of 119.90) - offset 3118 NAV1: 4144 (so 141.44 instead of 110.30) - offset 0350 NAV2: 5760 (so 157.60 instead of 116.80) - offset 0352 the code is: Uint16 GetCOM1() //034E { DWORD dwResult; Uint16 valeur; FSUIPC_Read(0x034E, 2, &valeur, &dwResult); FSUIPC_Process(&dwResult); return valeur; } (it is the same code for COM2, NAV1 and NAV2, with the corresponding offsets) I hope you're able to help me! Thanks anyway for FSUIPC, this is really the best FS add-on ! Stéphane - dPm President of IPSAFlight association
  3. Looks like that was it! Sorry, that is my first big program in C language, I am not used to basic things like this one. Thanks for the answer. Now that I have included the right header, I get another error, but it is in a Visual C header. I'll deal with that one ! Regards, Stéphane
  4. Hi, I am trying to use the FSUIPC SDK, but I have some building errors. line implied is (in fsuipc_user.h): extern DWORD FSUIPC_Version; After a quick search on the forum, I was not able to find anything. I suspect Visual C++ 6 is considering DWORD as an "identifier" and not a type. You probably encountered this problem before, but like I said, I was not able to find a topic about it. Thank you for your time! Regards Stéphane - dPm
×
×
  • 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.