Throttle_pct = globals->get_controls()->get_throttle( 0 ) * 1.0;
- Brake_pct[0] = globals->get_controls()->get_brake( 1 );
- Brake_pct[1] = globals->get_controls()->get_brake( 0 );
+ Brake_pct[0] = globals->get_controls()->get_brake_right();
+ Brake_pct[1] = globals->get_controls()->get_brake_left();
// Inform LaRCsim of the local terrain altitude
// Runway_altitude = get_Runway_altitude();
- Runway_altitude = getACModel()->get3DModel()->getSGLocation()->get_cur_elev_m() * SG_METER_TO_FEET;
+ Runway_altitude = fgGetDouble("/position/ground-elev-m") * SG_METER_TO_FEET;
// Weather
/* V_north_airmass = get_V_north_airmass();
V_east_airmass = get_V_east_airmass();
// flaps with transition occuring in uiuc_aerodeflections.cpp
if (use_flaps) {
- fgSetDouble("/surface-positions/flight/flap-pos-norm", flap_pos_pct);
+ fgSetDouble("/surface-positions/flight/flap-pos-norm", flap_pos_norm);
}
// spoilers with transition occurring in uiuc_aerodeflections.cpp