5.3.2 Angle calibration

>From the user's point of view, the RMC accepts and displays pointing angles as floating point numbers with 0.001° resolution. Internally the software treats angles as 32 bit integer numbers where the full 32 bit range corresponds to 360°. This is equivalent to a resolution of 0.000000084°.

When the software calculates the pointing angles from the sensor readings, it includes some calibration parameters configurable at the Setup page. The steps of calculating a pointing angle are as follows:

  1. Get the raw value.
  2. Extend (left shift) the value to 32 bits.
  3. Reverse the sign if this option is set in the setup.
  4. If the calibration scale is nonzero, convert the value to floating point, multiply by the calibration scale and convert the value back to 32 bit integer.
  5. Add the calibration offset.
  6. For the azimuth axis add the antenna course, too.

The integer value calculated this way is used for the internal pointing routines. At the user interface and for remote control, show the internal value multiplied by (36/2^32).