Browse Source

AC_PosControl: Change motors.get_throttle_out

to get_throttle to follow function renaming in AP_Motors
mission-4.1.18
Robert Lefebvre 10 years ago committed by Randy Mackay
parent
commit
e87ca6de6f
  1. 2
      libraries/AC_AttitudeControl/AC_PosControl.cpp

2
libraries/AC_AttitudeControl/AC_PosControl.cpp

@ -252,7 +252,7 @@ void AC_PosControl::init_takeoff() @@ -252,7 +252,7 @@ void AC_PosControl::init_takeoff()
freeze_ff_z();
// shift difference between last motor out and hover throttle into accelerometer I
_pid_accel_z.set_integrator(_motors.get_throttle_out()-_throttle_hover);
_pid_accel_z.set_integrator(_motors.get_throttle()-_throttle_hover);
}
// is_active_z - returns true if the z-axis position controller has been run very recently

Loading…
Cancel
Save