- The
Magnetorquer
class simulates a magnetorquer. - The
Magnetorquer
class generates torque caused by the magnetorquer.
magnetorquer.cpp, magnetorquer.hpp
: Definitions and declarations of the classmagnetorquer.ini
: Initialization fileplot_magnetorquer.py
: An example of a Python script to plot magnetorquer output
- Set the parameters in
magnetorquer.ini
.quaternion_b2c
: Frame conversion quaternion from body to component frame.scale_factor_c
: Scale factor from ordered value to generated valuemax_output_magnetic_moment_c_Am2
: Maximum output of magnetorquermin_output_magnetic_moment_c_Am2
: Minimum output of magnetorquerconstant_bias_noise_c_Am2
: Constant bias noiserandom_walk_standard_deviation_c_Am2
: Standard deviation of random walk noise for MTQ outputrandom_walk_limit_c_Am2
: Limit of random walk noise for MTQ outputwhite_noise_standard_deviation_c_Am2
: Standard deviation of white noise for MTQ output- Other parameters
- Parameters for the
Component
class - Parameters for the
PowerPort
class
- Parameters for the
- Create an instance by using the initialization function
InitMagnetorquer
- Use the
SetOutputMagneticMoment*
function to set the ordered magnetic moment.
- The
MainRoutine
function adds output noise to the ordered magnetic moment and calculates generated torque by the interaction between the output magnetic moment and the magnetic field.
- NA
- NA
- The output result obtained by the default initial settings.
- The figure is generated by the Python script.