2717dba826
ability to run a nonlinear model with flaps. The files ls_model.c and uiuc_aero.c were changed since we had some functions with the same name. The name changes doesn't affect the code, it just makes it a little easier to read. There are changes in LaRCsim.cxx so UIUC models have engine sound. Could you send me an email when you receive this and/or when the changes make it to the CVS? Thanks. Also I noticed you have some outdated files that are no longer used in the UIUCModel directory. They are uiuc_initializemaps1.cpp, uiuc_initializemaps2.cpp, uiuc_initializemaps3.cpp, and uiuc_initializemaps4.cpp Rob
97 lines
2.1 KiB
C
97 lines
2.1 KiB
C
/***************************************************************************
|
|
|
|
TITLE: uiuc_aero
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
FUNCTION: aerodynamics, engine and gear model
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
MODULE STATUS: developmental
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
GENEALOGY: Equations based on Part 1 of Roskam's S&C text
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
DESIGNED BY: Bipin Sehgal
|
|
|
|
CODED BY: Bipin Sehgal
|
|
|
|
MAINTAINED BY: Rob Deters and Glen Dimock
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
MODIFICATION HISTORY:
|
|
|
|
DATE PURPOSE BY
|
|
3/17/00 Initial test release
|
|
3/09/01 Added callout to UIUC gear function. (DPM)
|
|
6/18/01 Added call out to UIUC record routine (RD)
|
|
11/12/01 Changed from uiuc_init_aeromodel() to uiuc_initial_init(). (RD)
|
|
2/24/02 Added uiuc_network_routine() (GD)
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
CALLED BY:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
CALLS TO:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
INPUTS:
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
OUTPUTS:
|
|
|
|
--------------------------------------------------------------------------*/
|
|
|
|
|
|
#include <math.h>
|
|
#include "ls_types.h"
|
|
#include "ls_generic.h"
|
|
#include "ls_constants.h"
|
|
#include "ls_cockpit.h"
|
|
#include <FDM/UIUCModel/uiuc_wrapper.h>
|
|
|
|
|
|
void uiuc_aero_2_wrapper( SCALAR dt, int Initialize )
|
|
{
|
|
static int init = 0;
|
|
|
|
if (init==0)
|
|
{
|
|
init = -1;
|
|
uiuc_initial_init();
|
|
// uiuc_init_aeromodel();
|
|
}
|
|
|
|
uiuc_force_moment(dt);
|
|
}
|
|
|
|
|
|
void uiuc_engine_2_wrapper( SCALAR dt, int Initialize )
|
|
{
|
|
uiuc_engine_routine();
|
|
}
|
|
|
|
|
|
void uiuc_gear_2_wrapper ()
|
|
{
|
|
uiuc_gear_routine();
|
|
}
|
|
|
|
void uiuc_record_2_wrapper(SCALAR dt)
|
|
{
|
|
uiuc_record_routine(dt);
|
|
}
|
|
|
|
//void uiuc_network_2_wrapper()
|
|
//{
|
|
// uiuc_network_routine();
|
|
//}
|