Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
Implements a single axis sun sensor. More...
#include <single_axis_sun_sensor.h>
Public Member Functions | |
single_axis_sun_sensor (dsim_model_setup *setup) | |
Constructor. More... | |
void | initialize_data () |
Initialize outlets and output variables. | |
void | initialization_complete () |
Finish initialization. | |
void | post_calculate () |
Computation done after numerical integration. | |
![]() | |
sensor (dsim_model_setup *setup) | |
Constructor. | |
void | initialize_data () |
Initialize outlets and output variables. | |
Protected Attributes | |
dsim_variable | parent_quaternion_dsim |
Parent quaternion. | |
Parameters | |
dsim_variable | fineCoefficient_dsim |
Fine coefficient. | |
dsim_variable | sunAngleMax_dsim |
Sun angle maximum. | |
dsim_variable | boresight_dsim |
Sensor boresight. | |
dsim_variable | spinAxis_dsim |
Sensor spin axis. | |
Outputs | |
dsim_variable | timeCEP_dsim |
CEP time. | |
dsim_variable | voltageSine_dsim |
Sun angle sine voltage. | |
dsim_variable | voltageCosine_dsim |
Sun angle cosine voltage. | |
dsim_variable | voltageBias_dsim |
Sun angle bias voltage. | |
dsim_variable | grayCode_dsim |
Gray code for coarse data. | |
dsim_variable | sunAngle_dsim |
Sun angle. | |
![]() | |
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. | |
Outlets | |
dsim_variable | positionBody_dsim |
Outlet to read matrix of planet position vectors. | |
dsim_variable | planetIndex_dsim |
Outlet to read index of spice gravity planets. | |
Implements a single axis sun sensor.
The output is gray code, sine, cosine and bias voltages. It also outputs the mission elapsed time of the transit of the sun through the field-of-view of the sensor. The sun angle is also available as an output. No lags are modeled and the sensor is noise free. Reference: Wertz, J., Ed., Spacecraft Attitude Determination and Control. Single axis sun sensor with no lag or noise.
single_axis_sun_sensor::single_axis_sun_sensor | ( | dsim_model_setup * | setup | ) |
Constructor.
single_axis_sun_sensor generates a timing signal and and angle between the spin-axis and the spin-plane.