mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-09 07:30:35 +08:00
FigureEight: Refactor initialization
This commit is contained in:
@@ -1262,8 +1262,6 @@ FixedwingPositionControl::controlAutoFigureEight(const float control_interval, c
|
||||
params.loiter_orientation = pos_sp_curr.loiter_orientation;
|
||||
params.loiter_radius = pos_sp_curr.loiter_radius;
|
||||
|
||||
_figure_eight.initializePattern(curr_pos_local, ground_speed, params);
|
||||
|
||||
// Apply control
|
||||
_figure_eight.updateSetpoint(curr_pos_local, ground_speed, params, target_airspeed);
|
||||
_att_sp.roll_body = _figure_eight.getRollSetpoint();
|
||||
|
||||
Reference in New Issue
Block a user