Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
A geometric sun sensor model. More...
#include <sun_sensor.h>
Inherits dsim_model.
Public Member Functions | |
sun_sensor (dsim_model_setup *setup) | |
Constructor. | |
void | initialization_complete () |
Finish initialization. | |
void | initialize_data () |
Initialize outlets and output variables. | |
void | pre_calculate () |
Computation done prior to numerical integration. More... | |
A geometric sun sensor model.
The model has an outlet for the solar flux vector. This model is strictly geometric; there is no noise applied. The output includes the azimuth and elevation of the sun vector and a flag indicating if the sun is present or not. The only parameter defining the sensor is the quaternion from the body frame to the sensor frame.
This model should be the child of the spacecraft model. The spacecraft quaternion is used in the coordinate transformations.
void sun_sensor::pre_calculate | ( | ) |
Computation done prior to numerical integration.
Update the sun presence flag and if the sun is present, compute the azimuth and elevation in the sensor frame.
References azimuth_dsim, elevation_dsim, parent_quaternion_dsim, q_body_to_sensor_dsim, solarFlux_dsim, and sun_presence_dsim.