AerospacePackage 1.0
|
Convert planet fixed initial conditions to ECI coordinates using spice. More...
#include <pf_to_eci.h>
Inherits dsim_model.
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.