Jump to content
The simFlight Network Forums

Search the Community

Showing results for tags '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 3 results

  1. Hello, This isn't a huge issue, I have it working well for my purposes and won't be a factor, but it is something I found strange. I've been building a home cockpit and when I got to working on the FCU display for the Aerosoft A318-A321 series of planes I ran into this. When monitoring the Offset for Heading Value which is 0x07CC I run into this issue. The FSUIPC monitor shows as I'm reducing the HDG setting when I hit 273deg it outputs the number 182, when I then continue and turn it to 272, it returns to output 272. When I then increase the value by one you see 273, but when I then turn to 274 it outputs a value of 364, and when I continue on the next value is 275. The strange thing is the simulator is the simulator shows the correct values, and when I monitor the Lvars that are affected by the change they are also showing the correct information. Below I made a quick video of it happening, unfortunately when I filmed it I had the FSUIPC monitor covered up, but it also shows what the mobiflight program is showing, for the FSUIPC value. As I said before, since it's only the one heading and the sim seems to not see a problem I can work with it, just found it interesting. Also in the video apparently I scrolled to the wrong part of my Lua script before I hit record, sorry but the video is not showing the correct stuff, it is below. https://www.youtube.com/watch?v=bB_gmUtw_nE -- Reads autopilot heading setting function AP_HDG_Setting() Heading_Set=ipc.readLvar("L:AB_AP_HDG_Select") ipc.writeUW(0x07CC, Heading_Set) end -- check to see if Lvars have changed then call up the proper function event.Lvar("L:AB_AP_HDG_Select",100,"AP_HDG_Setting") ******** FSUIPC4, Version 4.974 (24th February 2018) by Pete Dowson ********* Windows 10 Enterprise 64 Bit reported as Build 18363, Release ID: 1909 (OS 10.0) fsx.exe version = 10.0.62615.0 Reading options from "D:\Install games in here\Steam\steamapps\common\FSX\Modules\FSUIPC4.ini" Running inside FSX Steam Edition on Windows 10 Module base=5EE10000 User Name="-------------" User Addr="-------sm@hotmail.com" FSUIPC4 Key is provided 4344 D:\Install games in here\Steam\steamapps\common\FSX\SimObjects\Airplanes\Aerosoft Airbus A319 CFM\A319.air 9687 Weather Mode now = Theme 17172 User Aircraft ID 1 supplied, now being used 17187 Aircraft loaded: running normally now ... 24453 System time = 07/06/2020 18:49:05, Simulator time = 18:48:50 (22:48Z) 24469 Aircraft="Airbus A319 American Airlines N8001N"
  2. 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
  3. I'm using fsuipc for .cs This conversion yeilds the correct GS speed. but as mentioned "GS: Ground Speed, as 65536*metres/sec. Not updated in Slew" is not retrieving the correct value. mode! fsuipc.FSUIPC_Read(0x02B4, 4, ref token, ref resultValue); fsuipc.FSUIPC_Process(ref resultValue); fsuipc.FSUIPC_Get(ref token, ref resultValue); double groundpseed = resultValue* 3600 / 65536 / 1852; Similarly for TAS,doesn't give the correct value. fsuipc.FSUIPC_Read(0x02B8, 4, ref token, ref resultValue); fsuipc.FSUIPC_Process(ref resultValue); fsuipc.FSUIPC_Get(ref token, ref resultValue); double tas = resultValue * 128; Also for fuel weight, not the correct reading fsuipc.FSUIPC_Read(0x0AF4, 2, ref token, ref resultValue); fsuipc.FSUIPC_Process(ref resultValue); fsuipc.FSUIPC_Get(ref token, ref resultValue); double fuelonboard = resultValue*256; Same goes for heading too.
×
×
  • 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.