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

A planet fixed object. More...

#include <planet_fixed_object.h>

Inherits dsim_model.

Public Member Functions

 planet_fixed_object (dsim_model_setup *setup)
 Constructor.
 
 ~planet_fixed_object ()
 Destructor.
 
void initialize_data ()
 Initialize outlets and output variables.
 
void initialization_complete ()
 Finish initialization.
 
void initialize_timestep ()
 Computation done prior to numerical integration.
 
void rhs (double t, double jd)
 Computation done during numerical integration. More...
 
dsim_value handle_message (const std::string &sender_path, const std::string &message_name, const dsim_value &argument)
 Handle force and torque messages. More...
 

Protected Attributes

dsim_variable object_name_dsim
 Object name.
 
dsim_variable object_type_dsim
 Object type.
 
dsim_variable position_dsim
 object position
 
dsim_variable velocity_dsim
 object velocity
 
dsim_variable quaternion_dsim
 attitude quaternion ([scalar;x;y;z])
 
dsim_variable bodyRate_dsim
 body rotational rates (rad/s)
 
dsim_variable mass_dsim
 mass (kg)
 
dsim_variable observer_dsim
 Reference center.
 
dsim_variable positionBody_dsim
 Planet positions.
 
dsim_variable velocityBody_dsim
 Planet velocities.
 
dsim_variable planetIndex_dsim
 SPICE planet index.
 
dsim_variable radiusBody_dsim
 Planet radius.
 
dsim_variable acceleration_dsim
 Gravitational acceleration.
 
dsim_variable angularRateVector_dsim
 Angular rate vector.
 
dsim_variable rotationMatrixBody_dsim
 Body rotation matrix.
 
dsim_variable frame_dsim
 frame for initial conditions
 

Detailed Description

A planet fixed object.

This models an object fixed to a planet. Allows any model to be a child and will work like rigid_body.

Member Function Documentation

◆ rhs()

void planet_fixed_object::rhs ( double  t,
double  jd 
)

Computation done during numerical integration.

Quaternion kinematics and orbit derivative.

Uses qi_to_b_dot from the SCControl framework.

◆ handle_message()

dsim_value planet_fixed_object::handle_message ( const std::string &  sender_path,
const std::string &  message_name,
const dsim_value &  argument 
)

Handle force and torque messages.

Handle the messages.

The units should be N and Nm. Force should be in the ECI frame and torque should be in the body frame.


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