/// set current target horizontal speed during wp navigation
/// set current target horizontal speed during wp navigation
voidset_speed_xy(floatspeed_cms);
voidset_speed_xy(floatspeed_cms);
/// set pause or resume during wp navigation
voidset_pause(){_paused=true;}
voidset_resume(){_paused=false;}
/// get paused status
boolpaused(){return_paused;}
/// set current target climb or descent rate during wp navigation
/// set current target climb or descent rate during wp navigation
voidset_speed_up(floatspeed_up_cms);
voidset_speed_up(floatspeed_up_cms);
voidset_speed_down(floatspeed_down_cms);
voidset_speed_down(floatspeed_down_cms);
@ -258,8 +265,9 @@ protected:
Vector3f_origin;// starting point of trip to next waypoint in cm from ekf origin
Vector3f_origin;// starting point of trip to next waypoint in cm from ekf origin
Vector3f_destination;// target destination in cm from ekf origin
Vector3f_destination;// target destination in cm from ekf origin
float_track_scalar_dt;// time compression multiplier to slow the progress along the track
float_track_scalar_dt;// time compression multiplier to slow the progress along the track
float_terrain_vel;// maximum horizontal velocity used to ensure the aircraft can maintain height above terrain
float_offset_vel;// horizontal velocity reference used to slow the aircraft for pause and to ensure the aircraft can maintain height above terrain
float_terrain_accel;// acceleration value used to change _terrain_vel
float_offset_accel;// horizontal acceleration reference used to slow the aircraft for pause and to ensure the aircraft can maintain height above terrain
bool_paused;// flag for pausing waypoint controller
// terrain following variables
// terrain following variables
bool_terrain_alt;// true if origin and destination.z are alt-above-terrain, false if alt-above-ekf-origin
bool_terrain_alt;// true if origin and destination.z are alt-above-terrain, false if alt-above-ekf-origin