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

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...
 

Protected Attributes

dsim_variable parent_quaternion_dsim
 Parent quaternion.
 
dsim_variable solarFlux_dsim
 Solar flux outlet (ECI frame)
 
Outputs
dsim_variable q_body_to_sensor_dsim
 Quaternion from the body to the sensor frame.
 
dsim_variable azimuth_dsim
 Azimuth in the sensor frame.
 
dsim_variable elevation_dsim
 Elevation in the sensor frame.
 
dsim_variable sun_presence_dsim
 Sun presence.
 

Detailed Description

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.

Member Function Documentation

◆ pre_calculate()

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.


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