Spacecraft Models Package 2.0
Spacecraft Models for DSim
|
Rigid body with multiple reaction wheels. More...
#include <multi_body_central_hub_with_rwa.h>
Inherits dsim_model.
Public Member Functions | |
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... | |
void | complete_timestep () |
Computation done after numerical integration. | |
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 with multiple reaction wheels.
Models a spacecraft with a set of identical reaction wheels. The default wheel set is orthogonal + skew (4 wheels). The torque must be provide by a child model. The model accepts apply_force, apply_torque, and apply_rwa_torque messages during rhs().
void multi_body_hub_with_rwa::rhs | ( | double | t, |
double | jd | ||
) |
Computation done during numerical integration.
Quaternion kinematics and orbit derivative with wheels dynamics.
Uses qi_to_b_dot from the SCControl framework. Overwrites rigid_body's rhs without calling it.
References acceleration_dsim, angular_acceleration_dsim, position_dsim, state_dsim, and velocity_dsim.
dsim_value multi_body_hub_with_rwa::handle_message | ( | const std::string & | sender_path, |
const std::string & | message_name, | ||
const dsim_value & | argument | ||
) |
Handle force and torque messages.
Handles these message: