AerospacePackage 1.0
Public Member Functions | Protected Attributes | List of all members
pf_to_eci Class Reference

Convert planet fixed initial conditions to ECI coordinates using spice. More...

#include <pf_to_eci.h>

Inherits dsim_model.

Public Member Functions

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

Protected Attributes

dsim_variable fix_to_planet
 Fix to planet.
 
dsim_variable v_in_body_frame
 Fix to planet.
 
Parent variables

These variables are referenced from the parent object.

dsim_variable position_dsim
 Position.
 
dsim_variable velocity_dsim
 Velocity.
 
dsim_variable quaternion_dsim
 Quaternion.
 
dsim_variable angularRate_dsim
 Body rates.
 
dsim_variable frame_dsim
 Frame for initial parameters.
 
SPICE Outlets

These outlets provide the interface to the SPICE model for defining the planet frame.

dsim_variable observer_dsim
 Reference center.
 
dsim_variable positionBody_dsim
 Planet positions outlet.
 
dsim_variable velocityBody_dsim
 Planet velocities outlet.
 
dsim_variable planetIndex_dsim
 SPICE planet index outlet.
 
dsim_variable rotationMatrixBody_dsim
 Planet rotation matrix outlet.
 
dsim_variable planetAngularRate_dsim
 Planet angular rate matrix outlet.
 

Detailed Description

Convert planet fixed initial conditions to ECI coordinates using spice.

Adding this model to your rigid body spacecraft allows you to specify the vehicle initial state in the planet fixed frame rather than the ECI frame. The position, velocity, quaternion, and bodyRate initial values are all overwritten after being converted.

This module has outlets which must be connected to the SPICE model. It accounts for planet rotation. There are two flags. fix_to_planet fixes the vehicle to the planet surface if it is set to 1. The default is 1. v_in_body_frame interprets the velocity in the model to be in the body frame if it is 1. You must set the frame in the vehicle model to sometimes besides 0 for this to work. The default is 0.


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