| 1 | /*************************************************************************** |
| 2 | |
| 3 | TITLE: basic_engine.c |
| 4 | |
| 5 | ---------------------------------------------------------------------------- |
| 6 | |
| 7 | FUNCTION: dummy engine routine |
| 8 | |
| 9 | ---------------------------------------------------------------------------- |
| 10 | |
| 11 | MODULE STATUS: incomplete |
| 12 | |
| 13 | ---------------------------------------------------------------------------- |
| 14 | |
| 15 | GENEALOGY: |
| 16 | |
| 17 | |
| 18 | ---------------------------------------------------------------------------- |
| 19 | |
| 20 | DESIGNED BY: designer |
| 21 | |
| 22 | CODED BY: programmer |
| 23 | |
| 24 | MAINTAINED BY: maintainer |
| 25 | |
| 26 | ---------------------------------------------------------------------------- |
| 27 | |
| 28 | MODIFICATION HISTORY: |
| 29 | |
| 30 | DATE PURPOSE BY |
| 31 | |
| 32 | CURRENT RCS HEADER INFO: |
| 33 | |
| 34 | $Header$ |
| 35 | |
| 36 | * Revision 1.1 92/12/30 13:21:46 bjax |
| 37 | * Initial revision |
| 38 | * |
| 39 | |
| 40 | ---------------------------------------------------------------------------- |
| 41 | |
| 42 | REFERENCES: |
| 43 | |
| 44 | ---------------------------------------------------------------------------- |
| 45 | |
| 46 | CALLED BY: ls_model(); |
| 47 | |
| 48 | ---------------------------------------------------------------------------- |
| 49 | |
| 50 | CALLS TO: none |
| 51 | |
| 52 | ---------------------------------------------------------------------------- |
| 53 | |
| 54 | INPUTS: |
| 55 | |
| 56 | ---------------------------------------------------------------------------- |
| 57 | |
| 58 | OUTPUTS: |
| 59 | |
| 60 | --------------------------------------------------------------------------*/ |
| 61 | #include <math.h> |
| 62 | #include "ls_types.h" |
| 63 | #include "ls_constants.h" |
| 64 | #include "ls_generic.h" |
| 65 | #include "ls_sim_control.h" |
| 66 | #include "ls_cockpit.h" |
| 67 | #include "basic_aero.h" |
| 68 | |
| 69 | extern SIM_CONTROL sim_control_; |
| 70 | |
| 71 | void basic_engine( SCALAR dt, int init ) { |
| 72 | |
| 73 | // c172 |
| 74 | // F_X_engine = Throttle_pct * 421; |
| 75 | // neo 2m slope |
| 76 | F_X_engine = Throttle_pct * 8; |
| 77 | F_Y_engine = 0.0; |
| 78 | F_Z_engine = 0.0; |
| 79 | M_l_engine = 0.0; |
| 80 | M_m_engine = 0.0; |
| 81 | M_n_engine = 0.0; |
| 82 | |
| 83 | |
| 84 | // printf("Throttle_pct %f\n", Throttle_pct); |
| 85 | // printf("F_X_engine %f\n", F_X_engine); |
| 86 | |
| 87 | |
| 88 | } |
| 89 | |
| 90 |