![]() |
WarpTwin
Documentation for WarpTwin models and classes.
|
Pressure Sensor Model. More...
#include <PressureSensor.h>
Public Member Functions | |
| _pressure_output_struct () | |
| _pressure_output_struct (double meas_pressure, bool is_valid) | |
Public Attributes | |
| double | meas_pressure |
| bool | is_valid |
Pressure Sensor Model.
This model simulates a simple pressure sensor, gathering data from the MSIS atmospheric model or some other external atmosphere model at a specified rate.
HOW DOES THIS MODEL HANDLE NOISE: The typical barometric pressure sensor has some amount of additive noise in the pressure measurement that can be modeled as Gaussian white noise with a standard deviation that is dependent on the oversample ratio (OSR) of the sensors Analog to Digital Converter (ADC). This quantity is often labled as resolution in a data sheet and should not get confused with measurement resolution which is defined as measurement range / bits per measurement.
The typical pressure sensor also has some bias even after factory calibration. This bias is very stable (~mbar/year) so the bias random walk doesn't need to be modeled for the majority of missions that would use a pressure sensor. The bias is constant as a function of time, however it is not constant as a function of temperature. Most pressure sensor data sheets will have different temperature bands where the bias will change.
The majority of pressure sensors operate through an ADC which requires some internal factory calibrated polynomial function to convert the voltage source into a pressure reading. The internal polynomial are subject to manufacturing tolerances. To account for the error in this voltage to pressure conversion, multiplicative error can be used. The percent error should be very small (~0.1%) becuase the additive error is still accounted for.
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
TODO: Set up sat select TODO: Make model work in GUI
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::_pressure_output_struct::is_valid |
| double warptwin::_pressure_output_struct::meas_pressure |