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

Scanning horizon sensor model. More...

#include <hsa.h>

Inheritance diagram for hsa:
sensor

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.
 
- Public Member Functions inherited from sensor
 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.
 
- Protected Attributes inherited from sensor
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.
 

Detailed Description

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.


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