$Header$
$Log$
+Revision 1.4 1998/01/19 18:40:26 curt
+Tons of little changes to clean up the code and to remove fatal errors
+when building with the c++ compiler.
+
+Revision 1.3 1998/01/05 22:19:25 curt
+#ifdef'd out some unused code that was problematic for MSVC++ to compile.
+
+Revision 1.2 1997/05/29 22:39:58 curt
+Working on incorporating the LaRCsim flight model.
+
Revision 1.1 1997/05/29 00:09:57 curt
Initial Flight Gear revision.
#include <stdio.h>
#include "ls_types.h"
#include "ls_sym.h"
+#include "ls_step.h"
+#include "ls_init.h"
+#include "navion_init.h"
+
+/* temp */
+#include "ls_generic.h"
#define MAX_NUMBER_OF_CONTINUOUS_STATES 100
#define MAX_NUMBER_OF_DISCRETE_STATES 20
extern SCALAR Simtime;
-static int Symbols_loaded = 0;
+/* static int Symbols_loaded = 0; */
static int Number_of_Continuous_States = 0;
static int Number_of_Discrete_States = 0;
static cont_state_rec Continuous_States[ MAX_NUMBER_OF_CONTINUOUS_STATES ];
static disc_state_rec Discrete_States[ MAX_NUMBER_OF_DISCRETE_STATES ];
-void ls_init_init()
-{
- int i, error;
+void ls_init_init( void ) {
+ int i;
+ /* int error; */
if (Number_of_Continuous_States == 0)
{
*/
}
-void ls_init()
-{
- int i;
+void ls_init( void ) {
+ /* int i; */
Simtime = 0;
+ printf("LS in init() pos = %.2f\n", Latitude);
+
ls_init_init();
+
+ printf("LS after init_init() pos = %.2f\n", Latitude);
/* move the states to proper values */
/* commented out by CLO
model_init();
+ printf("LS after model_init() pos = %.2f\n", Latitude);
+
ls_step(0.0, -1);
+
+ printf("LS after ls_step() pos = %.2f\n", Latitude);
}
+#ifdef COMPILE_THIS_CODE_THIS_USELESS_CODE
+
char *ls_init_get_set(char *buffer, char *eob)
/* This routine parses the settings file for "init" entries. */
{
return bufptr;
}
-
+#endif /* COMPILE_THIS_CODE_THIS_USELESS_CODE */
void ls_init_put_set( FILE *fp )
return;
}
-void ls_save_current_as_ic()
-{
+void ls_save_current_as_ic( void ) {
/* Save current states as initial conditions */
- int i, error;
+ /* int i, error; */
/* commented out by CLO
for(i=0;i<Number_of_Continuous_States;i++)