Aerospace Control Framework 1.0
|
Aircraft table lookup. More...
#include <sc_aero_actuator_table.h>
Public Member Functions | |
aero_actuator_table (void) | |
Constructor. | |
void | initialize (char *filename) |
Initialize with a filename. More... | |
void | set_center_of_mass (ml_matrix center_of_mass) |
Set the center of mass. | |
void | set_position (ml_matrix position) |
Set the position. | |
ml_matrix | get_torque (void) |
Return the torque. | |
ml_matrix | get_force (void) |
Return the force. | |
void | update (double h, double m) |
Update the values of torque and force. More... | |
Aircraft aerodynamic actuator model. This uses 3 tables of data passed in from a file. The table is two dimensional and is a function of altitude and mach number. The organization of the data file is [ mach_no ] m columns [ altitude] n columns [ x force (n,m) ] [ y force (n,m) ] [ z force (n,m) ]
void aero_actuator_table::initialize | ( | char * | filename | ) |
Initialize the model from an ASCII text engine data file.
The first line is the mach number, the second is the altitude. From the altitude we get the number of rows. We then read in two matrices.
void aero_actuator_table::update | ( | double | h, |
double | m | ||
) |
Return the torque given the altitude and mach number.
h | Altitude |
m | Mach number |