1
0
Fork 0

Updates to Tony's c172 model.

This commit is contained in:
curt 1999-08-07 19:18:45 +00:00
parent a7abe629cf
commit 09987296b4
4 changed files with 10 additions and 16 deletions

View file

@ -219,8 +219,8 @@ void aero( SCALAR dt, int Initialize ) {
else
elevator=(Long_control+long_trim)*23*DEG_TO_RAD;
aileron = Lat_control*17.5*DEG_TO_RAD;
rudder = Rudder_pedal*16*DEG_TO_RAD;
aileron = -1*Lat_control*17.5*DEG_TO_RAD;
rudder = -1*Rudder_pedal*16*DEG_TO_RAD;
/*
The aileron travel limits are 20 deg. TEU and 15 deg TED
but since we don't distinguish between left and right we'll
@ -293,3 +293,5 @@ void aero( SCALAR dt, int Initialize ) {
*//* printf("Maero: %7.4f Naero: %7.4f Raero: %7.4f\n",M_m_aero,M_n_aero,M_l_aero);
*/
}

View file

@ -75,8 +75,10 @@ void engine( SCALAR dt, int init ) {
/* F_X_engine = Throttle[3]*813.4/0.2; */ /* original code */
/* F_Z_engine = Throttle[3]*11.36/0.2; */ /* original code */
F_X_engine = Throttle[3]*813.4/0.83;
F_Z_engine = Throttle[3]*11.36/0.83;
F_X_engine = Throttle[3]*268.42/0.83;
F_Z_engine = Throttle[3]*3.75/0.83;
Throttle_pct = Throttle[3];
}

View file

@ -37,7 +37,7 @@
$Header$
$Log$
Revision 1.4 1999/08/07 16:23:55 curt
Revision 1.5 1999/08/07 17:18:45 curt
Updates to Tony's c172 model.
Revision 1.1.1.1 1999/04/05 21:32:45 curt
@ -93,6 +93,7 @@ Initial Flight Gear revision.
#include "ls_generic.h"
#include "ls_cockpit.h"
/* SCALAR Brake_pct; */
void sub3( DATA v1[], DATA v2[], DATA result[] )
{
result[0] = v1[0] - v2[0];

View file

@ -74,14 +74,3 @@ void model_init( void ) {
}
/* a quick navion_init.h */
#ifndef _NAVION_INIT_H
#define _NAVION_INIT_H
void model_init( void );
#endif _NAVION_INIT_H