X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=FDM%2FLaRCsim.cxx;h=3230274f3785c76f8cb4cb4dd546c873c4c97ef0;hb=bab1b9c2e58a1e9a1de64d0738d0e4fa42aba459;hp=8adc23b4005497a36756c7ca07a84936b52b2085;hpb=309f1543a9382318af73c6ebc21c4060c473d20b;p=flightgear.git diff --git a/FDM/LaRCsim.cxx b/FDM/LaRCsim.cxx index 8adc23b40..3230274f3 100644 --- a/FDM/LaRCsim.cxx +++ b/FDM/LaRCsim.cxx @@ -78,16 +78,13 @@ int fgLaRCsimUpdate(fgFLIGHT *f, int multiloop) { // Convert from the fgFLIGHT struct to the LaRCsim generic_ struct int fgFlight_2_LaRCsim (fgFLIGHT *f) { - fgCONTROLS *c; - c = current_aircraft.controls; - - Lat_control = FG_Aileron; - Long_control = FG_Elevator; - Long_trim = FG_Elev_Trim; - Rudder_pedal = FG_Rudder; - Throttle_pct = FG_Throttle[0]; - Brake_pct = FG_Brake_Amt; + Lat_control = controls.get_aileron(); + Long_control = controls.get_elevator(); + Long_trim = controls.get_elevator_trim(); + Rudder_pedal = controls.get_rudder(); + Throttle_pct = controls.get_throttle( 0 ); + Brake_pct = controls.get_brake( 0 ); Mass = FG_Mass; I_xx = FG_I_xx; @@ -440,6 +437,9 @@ int fgLaRCsim_2_Flight (fgFLIGHT *f) { // $Log$ +// Revision 1.3 1998/10/25 14:08:43 curt +// Turned "struct fgCONTROLS" into a class, with inlined accessor functions. +// // Revision 1.2 1998/10/17 01:34:11 curt // C++ ifying ... //