Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
Scanning horizon sensor model. More...
#include <hsa.h>
Public Member Functions | |
hsa (dsim_model_setup *setup) | |
Constructor. | |
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 | tLE_dsim |
Leading edge time (s) | |
dsim_variable | tTE_dsim |
Trailing edge time (s) | |
dsim_variable | dihedralAngle_dsim |
Dihedral angle (rad) | |
dsim_variable | planetIndex_dsim |
Outlet to read index of spice gravity planets. | |
Parameters | |
dsim_variable | uHSA_dsim |
Unit spin vector. | |
Outlet variables | |
dsim_variable | radius_dsim |
Outlet to read planet radius. | |
dsim_variable | positionBody_dsim |
Outlet to read positionBody matrix. | |
Parent variables | |
dsim_variable | parent_position_dsim |
Parent position. | |
dsim_variable | parent_velocity_dsim |
Parent velocity. | |
dsim_variable | parent_quaternion_dsim |
Parent quaternion. | |
dsim_variable | parent_rotational_velocity_dsim |
Parent rotational velocity. | |
![]() | |
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. | |
Scanning horizon sensor model.
Horizon sensor assembly. This sensor must be the child of the core spacecraft. The sensor output is double precision. The model computes the chordwidth using spherical trigonometry. The sensor model needs to know the spin vector of the sensor (or the spacecraft) and the nadir vector. If the scan is not on the earth the outputs are zero. If the scan is on the earth it outputs the leading and trailing edge times which are just the angle to the leading and trailing edges divided by the spin rate.
A real sensor can be fooled by sun reflections off of the earth but that is not modeled by this routine.
See HSAData and GetHSA from the Spacecraft Contol Toolbox. Horizon sensor outputting dihedral angle.