1f1b2bab50
it's now possible to choose the LaRCsim model at runtime, as in fgfs --aircraft=c172 or fgfs --aircraft=uiuc --aircraft-dir=Aircraft-uiuc/Boeing747 I did this so that I could play with the UIUC stuff without losing Tony's C172 with its flaps, etc. I did my best to respect the design of the LaRCsim code by staying in C, making only minimal changes, and not introducing any dependencies on the rest of FlightGear. The modified files are attached.
63 lines
1.5 KiB
C
63 lines
1.5 KiB
C
/***************************************************************************
|
|
|
|
TITLE: cherokee_init.c
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
FUNCTION: Initializes cherokee math model
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
MODULE STATUS: developmental
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
GENEALOGY:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
CURRENT RCS HEADER:
|
|
|
|
Well,
|
|
I do not have vorking RCS here (Sorry)
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
REFERENCES:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
CALLED BY:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
CALLS TO:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
INPUTS:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
OUTPUTS:
|
|
|
|
--------------------------------------------------------------------------*/
|
|
#include "ls_types.h"
|
|
#include "ls_generic.h"
|
|
#include "ls_cockpit.h"
|
|
|
|
void cherokee_init( void )
|
|
{
|
|
|
|
Throttle[3] = 0.2; Rudder_pedal = 0; Lat_control = 0; Long_control = 0;
|
|
|
|
Dx_pilot = 0; Dy_pilot = 0; Dz_pilot = 0;
|
|
|
|
Runway_altitude = 0;
|
|
Runway_latitude = 0;
|
|
Runway_longitude = 0;
|
|
Runway_heading = 0;
|
|
|
|
}
|