#include "ls_cockpit.h"
#include "ls_interface.h"
#include "../flight.h"
-#include "../../aircraft/aircraft.h"
+#include "../../Aircraft/aircraft.h"
/* global variable declarations */
int ls_cockpit() {
- struct control_params *c;
+ struct CONTROLS *c;
sim_control_.paused = 0;
c = ¤t_aircraft.controls;
- Lat_control = -c->aileron;
- Long_control = -c->elev;
- Rudder_pedal = c->rudder;
- Throttle_pct = c->throttle[0];
+ 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 FG FLIGHT struct to the LaRCsim generic_ struct */
+int fgFlight_2_LaRCsim (struct FLIGHT *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 FG FLIGHT struct */
+int fgLaRCsim_2_Flight (struct FLIGHT *f) {
FG_Mass = Mass;
FG_I_xx = I_xx;
FG_I_yy = I_yy;
/* Flight Gear Modification Log
*
* $Log$
+ * 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!!!
*