AC_PosControl: init flags

Resolves warning from Coverity
This commit is contained in:
Randy Mackay 2015-06-08 13:27:03 +09:00
parent 5f53937c6a
commit d2f93dd379

View File

@ -61,13 +61,20 @@ AC_PosControl::AC_PosControl(const AP_AHRS& ahrs, const AP_InertialNav& inav,
AP_Param::setup_object_defaults(this, var_info); AP_Param::setup_object_defaults(this, var_info);
// initialise flags // initialise flags
_flags.recalc_leash_xy = true;
_flags.recalc_leash_z = true; _flags.recalc_leash_z = true;
_flags.recalc_leash_xy = true;
_flags.reset_desired_vel_to_pos = true; _flags.reset_desired_vel_to_pos = true;
_flags.reset_rate_to_accel_xy = true; _flags.reset_rate_to_accel_xy = true;
_flags.reset_accel_to_lean_xy = true; _flags.reset_accel_to_lean_xy = true;
_flags.reset_rate_to_accel_z = true; _flags.reset_rate_to_accel_z = true;
_flags.reset_accel_to_throttle = true; _flags.reset_accel_to_throttle = true;
_flags.freeze_ff_xy = true;
_flags.freeze_ff_z = true;
_limit.pos_up = true;
_limit.pos_down = true;
_limit.vel_up = true;
_limit.vel_down = true;
_limit.accel_xy = true;
} }
/// ///