#include <Aircraft/aircraft.h>
#include <Astro/solarsystem.hxx>
#include <Astro/sky.hxx>
-#include <Autopilot/autopilot.h> // Added autopilot.h to list, Jeff Goeke-Smith
+#include <Autopilot/autopilot.hxx>
#include <Cockpit/hud.hxx>
#include <Debug/fg_debug.h>
#include <GUI/gui.h>
if ( GLUT_ACTIVE_ALT && glutGetModifiers() ) {
fgPrintf( FG_INPUT, FG_DEBUG, " SHIFTED\n");
switch (k) {
+ case 1: // Ctrl-A key
+ fgAPToggleAltitude();
+ return;
+ case 8: // Ctrl-H key
+ fgAPToggleHeading();
+ return;
case 49: // numeric keypad 1
v->goal_view_offset = FG_PI * 0.75;
return;
tmp /= 1.10;
fgWeatherSetVisibility( tmp );
return;
- // autopilot additions
- case 65: // A key
- fgAPSetMode(1);
- return;
- case 83: // S key
- fgAPSetMode(0);
- return;
- case 68: // D key
- fgAPSetHeading(AP_CURRENT_HEADING);
- return;
}
} else {
fgPrintf( FG_INPUT, FG_DEBUG, "\n");
case 51: // numeric keypad 3 (Pg Dn)
fgThrottleMove(0, -0.01);
return;
+ case 98: // b key
+ int b_ret;
+ double b_set;
+ b_ret = int( fgBrakeGet() );
+ b_set = double(!b_ret);
+ fgBrakeSet(b_set);
+ return;
case 104: // h key
HUD_brightkey( false );
return;
// $Log$
+// Revision 1.25 1998/09/29 02:03:36 curt
+// Autopilot mods.
+//
// Revision 1.24 1998/09/26 13:16:44 curt
// C++-ified the comments.
//
# include <Audio/src/sm.h>
#endif
+#include <Autopilot/autopilot.hxx>
#include <Cockpit/cockpit.hxx>
#include <Debug/fg_debug.h>
#include <GUI/gui.h>
}
if ( !t->pause ) {
+ // run Autopilot system
+ fgAPRun();
+
// printf("updating flight model x %d\n", multi_loop);
fgFlightModelUpdate(current_options.get_flight_model(), f, multi_loop);
} else {
// $Log$
+// Revision 1.54 1998/09/29 02:03:38 curt
+// Autopilot mods.
+//
// Revision 1.53 1998/09/26 13:18:35 curt
// Check if audio "working()" before doing audio manipulations.
//
#include <Astro/stars.hxx>
// #include <Astro/sun.hxx>
#include <Astro/solarsystem.hxx>
-#include <Autopilot/autopilot.h>
+#include <Autopilot/autopilot.hxx>
#include <Cockpit/cockpit.hxx>
#include <Debug/fg_debug.h>
#include <Joystick/joystick.h>
// $Log$
+// Revision 1.39 1998/09/29 02:03:39 curt
+// Autopilot mods.
+//
// Revision 1.38 1998/09/15 04:27:30 curt
// Changes for new Astro code.
//