Description

The purpose of this module is to act as an interface between a three-axis Magnetometer (TAM) sensor module and the flight software layer. A TAM will measure the local magnetic field in the local sensor frame , which may have some orientation relative to the body frame .


Example Use Cases

  • Get local magnetic field in the body frame: In reality, sensors are only able to measure the local orientation of fields in their frame (they have no knowledge of parent frames). This module transforms between the sensor frame and the body frame.

Module Implementation

Given the DCM , which describes the rotation from , this module computes the body frame magnetic field as:


Assumptions/Limitations

  • By default, must be set by the user. This is to allow for improper configurations between the physical TAM orientation and the flight software’s knowledge of its orientation. Note that the TAM, and all physical objects, track their orientation relative to the root object (e.g. spacecraft ). This can be accessed by calling the DCM_LB method, which is equivalent to . To input the rotation, simply input DCM_LB.Transpose