Jump to content
The simFlight Network Forums

lsalt

Members
  • Posts

    3
  • Joined

  • Last visited

About lsalt

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://www.onfinals.net

lsalt's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi Pete , Yes you did give three solutions. I have implemented the second i.e. hdg=(((hdg+32768)/65536)*360)/65536; The one degree increments are more than adequated for my purposes. This has work perfectly and more improtantly I fully understand why now , it is obvious now its been pointed out to me. As I am still very green to programming I haven't had to deal with numbers this large before and didn't even think of it. Thanks for the lesson learn't more in C programming rather than a actual FSUIPC one ! All the best Gilles
  2. Thanks for the quick response Pete, As you can probably gather I'm not only new to programing applications with FSUIPC but new to programming in general. You have shed some light on what I'm doing wrong , I'm not allowing enough space in memory to adequate hold the data needed for the calculation. I will review the my data types and try again. all the best Gilles.
  3. Dear all, hopefully someone can provide some assistance , I'm just starting to wrote code to access FS data via FSUIPC so apologies in advance if the anwser to this is obvious. I'm trying to access FS2002 data using FSUIPC from an application written using Borland C++ Builder. I've been able to succesfully access data such as ASI , ALT, VSI, Compass and ADF however I have not been able to produce any meaniful results from HDG. ( i have not tried anything else yet). I'm using FSUIPC v 3.212 Any advice would be appreciated. regards Gilles. The following is a snippet of my code: double hdg; // - code removed for clarity. FSUIPC_Read(0x580, 4, &hdg, &dwResult); FSUIPC_Process(&dwResult); // Process the request(s) // Process Heading hdg=hdg*360/(65536*65536); AnsiString sHdg=hdg; RawData->eDG->Text=sHdg; // Send to Editbox for viewing.
×
×
  • 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.