Aerospace Control Framework 1.0
|
suborbital aerodynamic model. More...
#include <sc_aero_suborb.h>
Public Member Functions | |
aero_suborb (void) | |
Constructor. | |
void | initialize (char *filename) |
Initialize with a filename. More... | |
ml_matrix | get_torque (void) |
Return the torque. | |
ml_matrix | get_force (void) |
Return the force. | |
void | update (const ml_matrix &u, const ml_matrix ¢er_of_mass, double rho, const ml_matrix &hinge_angle, double h) |
Update the values of torque and force. More... | |
The organization of the data file is:
If the rotation axis is [0;0;0] then the model is assumed not to rotate relative to the core body.
void aero_suborb::initialize | ( | char * | filename | ) |
Initialize the model from an ASCII text data file.
References suborb_aero_s::axis, suborb_aero_s::q_body_to_hinge, suborb_aero_s::r_surf, and suborb_aero_s::s.
void aero_suborb::update | ( | const ml_matrix & | u, |
const ml_matrix & | center_of_mass, | ||
double | rho, | ||
const ml_matrix & | hinge_angle, | ||
double | h | ||
) |
Return the torque given the altitude and mach number.
u | Velocity vector in the body frame |
center_of_mass | Center of mass |
rho | Atmospheric density |
References suborb_aero_s::r_surf, and suborb_lift_and_drag().