This preserves the integrity of the original positive or negative number.Convert True headings to Magnetic by subtracting this value, Magnetic headings to True by adding this value.For the more usual ftmin you need to apply the conversion 603.28084256.
A frequency of 1234.5 will have 0x0234 here and 0x0105 in offset 02D6. The high byte contains the 1000s digit and the low byte the fraction, so, for a frequency of 1234.5 this offset will contain 0x0105. It is used for all sorts of things, including the elapsed time between keymouse-originated controls, to determine whether to accelerate incdec types. A frequency of 1234.5 will have 0x0234 here and 0x0105 in offset 0356. See also offset 0389). If you change the NAV1 or NAV2 frequencies, writing 2 here makes FS re-scan for VORs to receive on those frequencies. If you change the ADF frequency, writing 2 here makes FS re-scan for an NDB to receive on that frequency. Although FS2000 seems to do this quite soon in any case). If you change the COM radio, writing a 1 here makes FS scan for ATIS broadcasts to receive on that frequency. This is used to provide the METAR reporting station altitude so that the cloud bases can be converted to AGL. Adding this drift value to the pressure will give the correct value for ATIS reports. This may be different to the current wind speed at the aircraftsee offset 0E90. This may be different to the current wind direction at the aircraftsee offset 0E92. To do, copy the high part (the 32-bit int at 0564) to one double and the low part (the 32-bit unsigned int at 0560) to another (say dLo). Remember that the low part is only part of a bigger number, so doesnt have a sign of its own. Divide dLo by (65536.0 65536.0) to give it its proper magnitude compared to the high part, then either add it to or subtract it from dHi according to whether dHi is positive or negative. Finally multiply the result by 90.010001750.0 to get degrees. To convert to Degrees: If your compiler supports long long (64-bit) integers then use such a variable to simply copy this 64-bit value into a double floating point variable and multiply by 360.0(65536.0 65536.0 65536.0 65536.0). To do, copy the high part (the 32-bit int at 056C) to one double and the low part (the 32-bit unsigned int at 0568) to another (say dLo).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |