- The
Magnetometer
class simulates a magnetometer. - The
Magnetometer
class calculates and returns the observed magnetic field with noise.
magnetometer.cpp, magnetometer.hpp
: Definitions and declarations of the classmagnetometer.ini
: Initialization fileplot_magnetometer.py
: An example of a Python script to plot magnetometer output
- Set the parameters in
magnetometer.ini
.quaternion_b2c
: Frame conversion quaternion from body to component frame.- Other parameters
- Parameters for the
Component
class - Parameters for the
Sensor
class - Parameters for the
PowerPort
class
- Parameters for the
- Create an instance by using the initialization function
InitMagnetometer
- Use the
Get*
function to get magnetic field information.
- The
MainRoutine
function converts the magnetic field coordinate from the body to the component and adds noises using the feature of theSensor
class.
- NA
- NA
- The output result obtained by the default initial settings.
- The figure is generated by the Python script.