Jump to content
The simFlight Network Forums

Cori Haws

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Cori Haws

  1. I see. yeah got the maths correct. datatypes no. Saying up untill 5AM programming is not good. Thankyou
  2. Also when i try to get Engine 1's N2 the same way i get Engine 1's N1 i seem to have a problem I get a value of 77 for N1 (Perfectly Normal and Accurate) and 5106000 for N2 Is this the correct Offset for N2 896 Thanks
  3. Ok thats seems to work. Thankyou. If guessing that the way I'm doing it isn't the correct way. By doing Dim instead of Private and Public Should i change my code to that format?
  4. Hello guys, Hopefully someone here will be able to help me. I'm trying to create an ACARS system using VB.net and the FSUIPC SDK. I'm got most of the standard 4byte Integer Offsets to work but I'm having a few problems with anything significantly higher. I am trying to get the Latitude and Longitude to work. Well it works as it is but uncomfortably it only takes the Degree and then the first Minute is rounded and so wouldn't be useful to track location as there is quite a significant difference. The Code I have is Dim Lat As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&H560) Dim Longitude As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&H568) Dim Lati As Double = Lat.Value * 90.0 / (10001750.0 * 65536.0 * 65536.0) Dim Longi As Double = Longitude.Value * 360.0 / (65536.0 * 65536.0 * 65536.0 * 65536.0) Me.txtLat.Text = Lati.ToString("f1") Me.txtLong.Text = Longi.ToString("f1") [/CODE] If there anyway I can get it to show the full Latitude and Longitude? Also I have things like Aircraft Title What datatype do I need. [CODE] Dim Title As Offset(Of Long) = New FSUIPC.Offset(Of Long)(&HD00) Me.txtAircraftTitle.Text = Title.ToString [/CODE] That's what I've got but it gives me an error in my TextBox which is FSUIPC.Offset`1[system.Int64] Thanks for the help.
×
×
  • 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.