|
|
|
@ -56,7 +56,7 @@ public:
@@ -56,7 +56,7 @@ public:
|
|
|
|
|
void set_loiter_target(const Vector3f& position); |
|
|
|
|
|
|
|
|
|
/// init_loiter_target - initialize's loiter position and feed-forward velocity from current pos and velocity
|
|
|
|
|
void init_loiter_target(); |
|
|
|
|
void init_loiter_target(bool reset_I=true); |
|
|
|
|
|
|
|
|
|
/// set_loiter_velocity - allows main code to pass the maximum velocity for loiter
|
|
|
|
|
void set_loiter_velocity(float velocity_cms); |
|
|
|
@ -235,6 +235,7 @@ protected:
@@ -235,6 +235,7 @@ protected:
|
|
|
|
|
AP_Float _wp_accel_cms; // acceleration in cm/s/s during missions
|
|
|
|
|
|
|
|
|
|
// loiter controller internal variables
|
|
|
|
|
bool _reset_I; // if true, reset x_y_I_terms of loiter controller
|
|
|
|
|
uint32_t _loiter_last_update; // time of last update_loiter call
|
|
|
|
|
uint8_t _loiter_step; // used to decide which portion of loiter controller to run during this iteration
|
|
|
|
|
int16_t _pilot_accel_fwd_cms; // pilot's desired acceleration forward (body-frame)
|
|
|
|
|