AC_PosControl: add clear_desired_velocity_ff_z method

This commit is contained in:
Leonard Hall 2017-04-27 15:58:13 +09:00 committed by Randy Mackay
parent aab27d8d0e
commit 6e92f74ca0

View File

@ -220,6 +220,9 @@ public:
/// set_desired_velocity_z - sets desired velocity in cm/s in z axis
void set_desired_velocity_z(float vel_z_cms) {_vel_desired.z = vel_z_cms;}
// clear desired velocity feed-forward in z axis
void clear_desired_velocity_ff_z() { _flags.use_desvel_ff_z = false; }
/// set_desired_velocity_xy - sets desired velocity in cm/s in lat and lon directions
/// when update_xy_controller is next called the position target is moved based on the desired velocity and
/// the desired velocities are fed forward into the rate_to_accel step