Jump to content
The simFlight Network Forums

About data-reading issues .

Recommended Posts

Hi  Paul :

     I'm working on an app that reading data from p3d v3 and udp data to another app (writing with QT  ,PFD and MFD ).

     There are some issues :

     1、about longitude and latitude .  In your example ,  the code  likes this:

        private Offset<FsLongitude> playerLon = new Offset<FsLongitude>("PerSecond20times", 0x0568, 8);
        private Offset<FsLatitude> playerLat = new Offset<FsLatitude>("PerSecond20times", 0x0560, 8);

        And it's  result like this:
    W086° 29.87'
         But I wish the result likes simconnect in radian ,  how to do that ?

       2、about  Ele system ,  I wrote the code like :

        private Offset<ulong> EleBusMain = new Offset<ulong>("PerSecond1times", 0x2840);
        private Offset<ulong> EleBusAmps = new Offset<ulong>("PerSecond1times", 0x2848);
        private Offset<ulong> EleBattMain = new Offset<ulong>("PerSecond1times", 0x2870);
        private Offset<ulong> EleBattAmps = new Offset<ulong>("PerSecond1times", 0x2878);

       Cause those four data's size are 8 , so  I put those in "ulong" type , but  those appear wrong :


       All data are very huge numbers .

       3、I found that C# type char's lenth is 2(also string), but Qt  is  1,  so when I  copy struct  to bytes and 

              upd to my app ,   the data was wrong too .

      So far,   I found that the data getting from FSUIPC and  from simconnect  are so different even it's

       a  same data type ,  and some data can't found in FSUIPC , e.g kohlsmann .

  Thank you for your help.

  Best regards.






Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.