#include <stdio.h>
#include <string.h>
-#include <Aircraft/aircraft.h>
+#include <Aircraft/aircraft.hxx>
#include <Debug/fg_debug.h>
#include <Include/fg_constants.h>
#include <Include/general.h>
#include <Math/polar3d.hxx>
#include <Scenery/scenery.hxx>
#include <Time/fg_timer.hxx>
-#include <Weather/weather.h>
#include "cockpit.hxx"
double get_throttleval( void )
{
- fgCONTROLS *pcontrols;
-
- pcontrols = current_aircraft.controls;
- return pcontrols->throttle[0]; // Hack limiting to one engine
+ return controls.get_throttle( 0 ); // Hack limiting to one engine
}
double get_aileronval( void )
{
- fgCONTROLS *pcontrols;
-
- pcontrols = current_aircraft.controls;
- return pcontrols->aileron;
+ return controls.get_aileron();
}
double get_elevatorval( void )
{
- fgCONTROLS *pcontrols;
-
- pcontrols = current_aircraft.controls;
- return pcontrols->elevator;
+ return controls.get_elevator();
}
double get_elev_trimval( void )
{
- fgCONTROLS *pcontrols;
-
- pcontrols = current_aircraft.controls;
- return pcontrols->elevator_trim;
+ return controls.get_elevator_trim();
}
double get_rudderval( void )
{
- fgCONTROLS *pcontrols;
-
- pcontrols = current_aircraft.controls;
- return pcontrols->rudder;
+ return controls.get_rudder();
}
double get_speed( void )
// $Log$
+// Revision 1.20 1998/10/25 14:08:40 curt
+// Turned "struct fgCONTROLS" into a class, with inlined accessor functions.
+//
+// Revision 1.19 1998/10/17 01:33:56 curt
+// C++ ifying ...
+//
+// Revision 1.18 1998/10/16 23:27:23 curt
+// C++-ifying.
+//
// Revision 1.17 1998/09/29 14:56:30 curt
// c++-ified comments.
//