Jump to content
The simFlight Network Forums

klm1509

new Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    netherland

klm1509's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hello everyone, I have tryed to covert the example that gjpollitt gave me, I have tried it and ....... IT WORKS, thanks everyone for helping :) Greetings, Melvin.
  2. Pete, after trying (in my oppinnion) everything to get this to work, i somehow thought that 0580 wasnt the one i needed. thanks for the extra info. greetings, melvin
  3. gjpollitt, first of all, thank u for the reply. maybe i had to be more specific..... I tried to and succeeded to get the value from 07CC to show wich heading i have set in the autopilot. What i now want to to is reading and showing , is my current heading the plane is flying. this is why I tryed 0ffset 05d0. Thanks again for an example i ll try it, and let u now if it solves my problem. greetings, Melvin
  4. Hello all, My name is melvin, and i'm learning to programm for about 4 weeks now in C#.net. I'm using fsuipc and fsuipc client dll 2.0 and VS2010. I'm am able to build a PFD wich is working perfect:) i'm also able to read the offset for the autopilot heading value/selector. Now have have encountert a problem, I want to read the heading and display it in a string in GDI+. here is what i have tried, Offset<int> headingview = new Offset<int>(0x05D0); Offset<short> varmag = new Offset<short>(0x2A0); double degree =(double)headingview.Value *360d/(65536d*65536d); double degreetrue =(double) degree-(varmag.Value *360d/65536d);       A.DrawString(degreetrue.ToString("000"), new Font("Verdana", 13, FontStyle.Bold), new SolidBrush(Color.LawnGreen), new Point(200, 310)); it works, only it displays the heading from 000 to 340, the the last 20 degrees are showen from -1 to -20 :s I have tried every option, uint/int/double but i just cant get it to work like it should :S Maybe someone can tell me what i'm doing wrong? Sorry for my english, but it isnt my native language ;) greetings, Melvin.
×
×
  • 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.