54 void update(
float ekfGndSpdLimit,
float ekfNavVelGainScaler);
Vector2< float > Vector2f
float get_distance_to_target() const
get_distance_to_target - get horizontal distance to position target in cm (used for reporting) ...
const AC_AttitudeControl & _attitude_control
void soften_for_landing()
reduce response for landing
void calc_desired_velocity(float nav_dt, float ekfGndSpdLimit)
Vector2f _predicted_accel
void sanity_check_params()
float get_roll() const
get desired roll, pitch which should be fed into stabilize controllers
A system for managing and storing variables that are of general interest to the system.
AC_Loiter(const AP_InertialNav &inav, const AP_AHRS_View &ahrs, AC_PosControl &pos_control, const AC_AttitudeControl &attitude_control)
Constructor.
void update(float ekfGndSpdLimit, float ekfNavVelGainScaler)
run the loiter controller
void get_stopping_point_xy(Vector3f &stopping_point) const
get vector to stopping point based on a horizontal position and velocity
int32_t get_bearing_to_target() const
get bearing to target in centi-degrees
ArduCopter attitude control library.
static const struct AP_Param::GroupInfo var_info[]
const AP_InertialNav & _inav
const AP_AHRS_View & _ahrs
Vector2f _predicted_euler_rate
Vector2f get_pilot_desired_acceleration() const
gets pilot desired acceleration, body frame, [forward,right]
Vector2f _predicted_euler_angle
AP_Float _brake_jerk_max_cmsss
Common definitions and utility routines for the ArduPilot libraries.
int32_t get_bearing_to_target() const
get_bearing_to_target - get bearing to target position in centi-degrees
void init_target()
initialize's position and feed-forward velocity from current pos and velocity
void clear_pilot_desired_acceleration()
clear pilot desired acceleration
void set_avoidance(AC_Avoid *avoid_ptr)
provide pointer to avoidance library
AP_Float _brake_accel_cmss
AC_PosControl & _pos_control
void set_pilot_desired_acceleration(float euler_roll_angle_cd, float euler_pitch_angle_cd, float dt)
set pilot desired acceleration in centi-degrees
float get_distance_to_target() const
get horizontal distance to loiter target in cm
int32_t get_pitch() const
int32_t get_roll() const
get desired roll, pitch which should be fed into stabilize controllers
float get_angle_max_cd() const
get maximum lean angle when using loiter