Spacecraft Models Package 2.0
Spacecraft Models for DSim
Public Member Functions | Protected Attributes | List of all members
magnetometer Class Reference

3-axis magnetometer model More...

#include <magnetometer.h>

Inherits dsim_model.

Public Member Functions

 magnetometer (dsim_model_setup *setup)
 Constructor.
 
void initialize_data ()
 Initialize outlets and output variables.
 
void initialization_complete ()
 Finish initialization.
 
void initialize_timestep ()
 Calculations necessary after integration.
 

Protected Attributes

dsim_variable scaling_dsim
 Scaling from field to voltage (V/T)
 
dsim_variable kMaxVoltage_dsim
 Maximum allowable voltage.
 
dsim_variable kMinVoltage_dsim
 Minimum allowable voltage.
 
dsim_variable voltage_dsim
 Vector of voltages, [x;y;z].
 
dsim_variable b_meas_dsim
 Magnetic field measurement with noise and bias.
 
dsim_variable bField_dsim
 Outlet to the magnetic_field output (body frame)
 
dsim_variable noise1sigma_dsim
 One sigma noise value(s)
 
dsim_variable bias_dsim
 Sensor bias.
 
dsim_variable q_dsim
 Sensor orientation relative to the parent body.
 
dsim_variable power_on_dsim
 Power when on.
 
dsim_variable current_dsim
 Measured current.
 
dsim_variable voltage_bus_dsim
 Bus voltage.
 

Detailed Description

3-axis magnetometer model

Model of an analog magnetometer. This sensor measures the local magnetic field. It requires an outlet to the magnetic field model. The output is the measured magnetic field in the body frame. The input scaling converts the magnetic field in Tesla to volts. The output is limited to the min and max voltage on each axis independently.

The noise and bias are applied in the sensor frame.


The documentation for this class was generated from the following files: