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

Convert LVLH initial conditions to ECI coordinates. More...

#include <lvlh_to_eci.h>

Inherits dsim_model.

Public Member Functions

 lvlh_to_eci (dsim_model_setup *setup)
 Constructor.
 
 ~lvlh_to_eci ()
 Destructor.
 
void initialize_data ()
 Initialize outlets and output variables.
 
void initialization_complete ()
 Finish initialization.
 

Protected Attributes

dsim_variable position_dsim
 Parent position.
 
dsim_variable velocity_dsim
 Parent velocity.
 
dsim_variable quaternion_dsim
 Parent quaternion.
 
dsim_variable bodyRate_dsim
 Parent body rate matrix.
 

Detailed Description

Convert LVLH initial conditions to ECI coordinates.

Adding this model to your rigid body spacecraft allows you to specify the initial quaternion as the LVLH to body quaternion rather than the ECI to body quaternion. On initialization, this computes the LVLH to ECI quaternion from the spacecraft position and velocity and overwrites both the initial quaternion and the body rate to the corresponding ECI values.


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