Jump to content
The simFlight Network Forums

TurryBoeing

new Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by TurryBoeing

  1. Hello Can you please explain where I am multiplying by 3.0? I think I am dividing 3.0 by 90, and then that result is multiplied by the constants 10001750.0 and 65536.0 wich I don´t know where they come from. I think I am never multiplying it. Thanks for help.
  2. Hello I am trying to write latitude to offset 0x0560 but I am having problems. I am doing: fsuipc_wrapper.WriteData(0x0560, 8, ByteBuffer.allocate(8).putLong(Double.doubleToLongBits((3.0/90.0)*(10001750.0*65536.0*65536.0))).array()); //Latitude is 3º (I want to set my aircraft at 3º), hardcoded for the moment The operation (3.0/90.0)*(10001750.0*65536.0*65536.0) returns 1.4319063050922668E15 wich is the correct value to send to FS. (I think) But the data received by FS is -4.2718529980465152E16 (getting the latitude after the data sent with the following:) double d = (double)getLong(0x0560); //The class is extending FSUIPC Does anybody see my problem? Thanks. Why is this?
×
×
  • 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.