Jump to content
The simFlight Network Forums

Daniel0175

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Daniel0175's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Thank you Thomas for your reply. I know, the only reason i did like this for now, it i perform the opening (FSConnection.Open(Result);) in another function and for some reason when i only perform a Read or ReadAndProcess i get a link not open error. I will resolve this issue later. I'll try this solution too, you can see in my function a variable Count, i used this variable to count the number of request and after 20 request i perform a process. You can see the code in remark Inside the function. /*if (Count >= 20) { FSConnection.Process(); Count = 0; }*/ maybe my count was not enough hi to make a significant change, i'll try an higher value. I don't remember what is the maximum byte accepted for the process queue. I think is 30 but not sure.
  2. Hi, I'm using the Fsuipc_MFC in my C++ application. Everything work fine with Fsuipc communication. My only problem is i need to read in loop a lots of offset. These offset are modify in an external program (SIOC for OpenCockpits IoCards). So i need to verify in a loop if the value of the offset as change. because the big quantity of reading, i've create a thread only for these action. The time that i read all the offset, it take a few second to pass all the offset and start again at the top of the list. i'll try to perform the process() once at every 20 read request. It help a bit but not much. here the function that i'll create to read the offset: void SimFsuipc::SimFsuipcRead(DWORD dwOffset, DWORD dwSize, long *pDest) { CFSUIPC FSConnection; static int Count = 0; FSConnection.Open(Result); if (FSConnection.GetResultMessage() != 0) { cout << FSConnection.GetResultMessageString() << endl; } if (!FSConnection.ReadAndProcess(dwOffset, dwSize, pDest)) //if (!FSConnection.Read(dwOffset, dwSize, pDest)) { FSConnection.GetResultMessage(); cout << FSConnection.GetResultMessageString() << endl; } else { Count++; } /*if (Count >= 20) { FSConnection.Process(); Count = 0; }*/ cout << *pDest << endl; } You will find in the attach file my file that is using my function. Don't forget that these offset are modify in a extern program and that why i need to read them as fast as possible. What should i do or what method do i need to use to upgrade my reading speed? Thank you for your help! Daniel SimFsuipc_OffsetRead.h
  3. Hi M. Dowson, i'm developping multiple modules for Fs and i wanna know what is the procedure to have my own offset adress in the FSUIPC module ? In fact, i will need 400 differents Offsets. For example: from 6000 to 6400. Thank you for the informations. Daniel.
  4. Thank you, I'll check that... :D Daniel
  5. Hi, I wanna know if it possible to move the flaps, the leading edge and the trailing edge flaps, and the spoilers on only one wing? I'm trying to simulated the spoilers switch on the 737 overhead, if the switch on the left side for example is off, only the spoilers on the right wing will move. And for the flaps, is it possible to move it slowly than the normal speed. Once again, the reason is i'm trying to simulate the movement of the flaps only with an electrical motor. I have search on the FSUIPC offset for that, and didn't find anything.... maybe it not possible... Thank you for your help. Daniel.
×
×
  • 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.