![]() |
WarpTwin
Documentation for WarpTwin models and classes.
|
Configurable magnetometer model which takes input from simplified or high fidelity magnetic field models. More...
#include <Magnetometer.h>
Public Member Functions | |
| _magnetometer_output_struct () | |
| _magnetometer_output_struct (CartesianVector3 meas_mag_field__mag, bool is_valid) | |
Public Attributes | |
| CartesianVector3 | meas_mag_field__mag |
| bool | is_valid |
Configurable magnetometer model which takes input from simplified or high fidelity magnetic field models.
This model simulates a simple magnetometer with bias and noise. This model requires use of an external magnetic field model (e.g. simple dipole model, IGRF, WMM). The magnetometer model requires an input to the frame of the magnetic field model output.
HOW DOES THIS MODEL HANDLE NOISE: The typical 3-axis magnetometer has uncorrelated noise in each of the three measurement axes. The additive noise in the magnetometer can be modeled as Gaussian white noise with a standard deviation that is dependent on measurement rate, temperature, and oversampling ratio.
The typical magnetometer also has some bias even after factory calibration. This bias is not completely stable so the bias random walk does need to be modeled for the majority of missions with a duration. The bias random walk standard deviation is constant as a function of time, however it is usually not constant as a function of temperature. Most accelerometer data sheets will have temperature effects on the bias stability.
The majority of magnetometers exhibit some amount of multiplicative noise that is very temperature and age dependent. This is due to the Micro-Electrical-Mechanical systems that are in the sensor being expanded and decompressed with temperature effects. Additionally, the internal polynomial function that is used to convert the measured voltage to a magnetic field measurement through an ADC is subject to manufacturing tolerances. The percent error standard deviation should be very small, around 0.1%-0.5%
Typically the noise profile (additive, multiplicative, and biasing) are all dependent on temperature. Because of this, the model has the values as inputs. The user has the choice to repeatedly input new noise characteristics based on an external model, or input them once and it be held constant.
Author: James Tabony james.nosp@m..tab.nosp@m.ony@a.nosp@m.ttx..nosp@m.tech
Sensor output struct for latency model, its members are the same as the model outputs. Its default constructor populates members with defualt output values
|
inline |
|
inline |
| bool warptwin::_magnetometer_output_struct::is_valid |
| CartesianVector3 warptwin::_magnetometer_output_struct::meas_mag_field__mag |