|
Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
Rigid body dynamical model applying force and body rae to the spacecraft. More...
#include <rigid_body_no_rate_dynamics.h>
Inherits dsim_model.
Public Member Functions | |
| rigid_body_no_rate_dynamics (dsim_model_setup *setup) | |
| Constructor. | |
| ~rigid_body_no_rate_dynamics () | |
| Destructor. | |
| void | initialize_data () |
| Initialize outlets and output variables. | |
| void | initialization_complete () |
| Finish initialization. | |
| void | initialize_timestep () |
| Computation done prior to numerical integration. | |
| void | complete_timestep () |
| Computation done after 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... | |
Rigid body dynamical model applying force and body rae to the spacecraft.
Integrates the position, velocity and quaternion. Body rates are an input. Children can use the apply_force messages.
| void rigid_body_no_rate_dynamics::rhs | ( | double | t, |
| double | jd | ||
| ) |
Computation done during numerical integration.
Quaternion kinematics and orbit derivative.
Uses qi_to_b_dot from the SCControl framework.
References acceleration_dsim, angular_acceleration_dsim, baseMass, bodyRate_dsim, force, m_to_km, position_dsim, quaternion_dsim, torque, totalMass_dsim, and velocity_dsim.
| dsim_value rigid_body_no_rate_dynamics::handle_message | ( | const std::string & | sender_path, |
| const std::string & | message_name, | ||
| const dsim_value & | argument | ||
| ) |
Handle force and torque messages.
Handle the apply_force and apply_torque messages.
The units should be N and Nm. Force should be in the ECI frame and torque should be in the body frame.
References force.