#include "ls_cockpit.h"
#include "ls_interface.h"
#include "../flight.h"
+#include "../../Aircraft/aircraft.h"
/* global variable declarations */
int ls_cockpit() {
+ struct fgCONTROLS *c;
+
sim_control_.paused = 0;
- Throttle_pct = 0.99;
+ c = ¤t_aircraft.controls;
+
+ Lat_control = FG_Aileron;
+ Long_control = FG_Elevator;
+ Long_trim = FG_Elev_Trim;
+ Rudder_pedal = FG_Rudder;
+ Throttle_pct = FG_Throttle[0];
/* printf("Mach = %.2f ", Mach_number);
printf("%.4f,%.4f,%.2f ", Latitude, Longitude, Altitude);
}
-/* Convert from the FG flight_params struct to the LaRCsim generic_ struct */
-int fgFlight_2_LaRCsim (struct flight_params *f) {
+/* Convert from the fgFLIGHT struct to the LaRCsim generic_ struct */
+int fgFlight_2_LaRCsim (struct fgFLIGHT *f) {
Mass = FG_Mass;
I_xx = FG_I_xx;
I_yy = FG_I_yy;
}
-/* Convert from the LaRCsim generic_ struct to the FG flight_params struct */
-int fgLaRCsim_2_Flight (struct flight_params *f) {
+/* Convert from the LaRCsim generic_ struct to the fgFLIGHT struct */
+int fgLaRCsim_2_Flight (struct fgFLIGHT *f) {
FG_Mass = Mass;
FG_I_xx = I_xx;
FG_I_yy = I_yy;
/* Flight Gear Modification Log
*
* $Log$
+ * Revision 1.10 1997/12/10 22:37:43 curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
+ * Revision 1.9 1997/08/27 03:30:08 curt
+ * Changed naming scheme of basic shared structures.
+ *
+ * Revision 1.8 1997/06/21 17:12:50 curt
+ * Capitalized subdirectory names.
+ *
+ * Revision 1.7 1997/05/31 19:16:28 curt
+ * Elevator trim added.
+ *
+ * Revision 1.6 1997/05/31 04:13:53 curt
+ * WE CAN NOW FLY!!!
+ *
+ * Continuing work on the LaRCsim flight model integration.
+ * Added some MSFS-like keyboard input handling.
+ *
+ * Revision 1.5 1997/05/30 23:26:25 curt
+ * Added elevator/aileron controls.
+ *
+ * Revision 1.4 1997/05/30 19:30:15 curt
+ * The LaRCsim flight model is starting to look like it is working.
+ *
* Revision 1.3 1997/05/30 03:54:12 curt
* Made a bit more progress towards integrating the LaRCsim flight model.
*