Jump to content
The simFlight Network Forums

Search the Community

Showing results for tags 'aircraft heading'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Product Support Forums
    • FSUIPC Support Pete Dowson Modules
    • MyTraffic Support Forum
    • FeelThere Support Forums
    • FS Commander Support Forum
    • Flying W Simulation
    • AConstable Traffic Sounds Support Forum
    • Fabio Merlo Products Support Forum
    • Elite-Air Studio Support Forum
    • Nikola Jovanovic Support Forum
    • Intrasystems Support Forum
    • FScene Support Forum
    • Taburet & DanVFR Support Forum
    • Environ Scenery
  • simFlight DE
  • FS MAGAZIN (DE)
  • simRussia
  • FSUIPC Client DLL for .NET

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. hello, as the title says it all, i want to read the heading into my application (through C++) i've tried everything that came to my mind to fix this, but i couldnt fix this this is my code: //this function normalizes the heading uint32_t normalize_heading(int32_t h) { if(h>359) { h-=359; } else if(h<0) { h+=359; } return h; } unsigned int heading; short mag_var; if(FSUIPC_Read(0x0580, 4, &heading, &result)&&FSUIPC_Process(&result)) { if(FSUIPC_Read(0x2A0, 2, &mag_var, &result)&&FSUIPC_Process(&result)) { double hdg1=heading*360/65536; double hdg2=mag_var*360/65536; double hdg3=hdg1-hdg2; hdg3=normalize_heading(hdg3); show_heading(hdg3); i've also tried this when calculating the heading: unsigned int heading; short mag_var; if(FSUIPC_Read(0x0580, 4, &heading, &result)&&FSUIPC_Process(&result)) { if(FSUIPC_Read(0x2A0, 2, &mag_var, &result)&&FSUIPC_Process(&result)) { double hdg1=heading*360/(65536*65536); double hdg2=mag_var*360/65536; double hdg3=hdg1-hdg2; hdg3=normalize_heading(hdg3); but compiler gave warning about devide by zero then when i run this, it crashes my application thanks in advance for your help peter
×

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.