Jump to content
The simFlight Network Forums

Nasser_M

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by Nasser_M

  1. Thank you,

    But what's method of direct converting 4261094146 (unsigned int[u32]) into -33873150 (in int[s32]).

    And is this method correct for calculate the 4 bytes :

    unsigned long value, b0, b1, b2, b3;

    double db;

    b3 = chBank[ 3];

    b2 = chBank[ 2];

    b1 = chBank[ 1];

    b0 = chBank[ 0];

    value = b3* 16777216+ b2* 65536+ b1* 256+ b0;

    db = value* 360.0/ ( 65536.0* 65536.0);

    Regards

    Nasser

  2. Hi Mr Dowson;

    -I want to get "Bank" variable in address 057C and calculate its real value.

    For example the value readed by FSUIPC is 4261094146 (in unsigned int[u32]) that is in fact -2.83921 ( Factored) or -33873150 (in int[s32]).

    How can I get these values from address 057C and convert to each other.

    -How can convert an unsigned int to signed or a signed to unsigned int.

    grateful.

    Nasser

  3. Thank you for quickly answer.

    Mr Dowson,

    I want to do a project that has include two computer and must read some data from one who main FS is runing on and show those data on the other computer with new panels in other fs or any utility that show these data by gauges.

    What you think? Can I do this with no programming trouble? and how.

    Thanks a lot.

×
×
  • 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.