mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 06:33:33 +08:00
updated some message severities and clarified reset in pos controller
This commit is contained in:
@@ -908,9 +908,10 @@ MulticopterPositionControl::cross_sphere_line(const math::Vector<3> &sphere_c, f
|
||||
|
||||
void MulticopterPositionControl::control_auto(float dt)
|
||||
{
|
||||
/* reset position setpoint on AUTO mode activation or when reentering MC mode */
|
||||
if (!_mode_auto || _vehicle_status.in_transition_mode || !_vehicle_status.is_rotary_wing) {
|
||||
_mode_auto = true;
|
||||
/* reset position setpoint on AUTO mode activation */
|
||||
|
||||
if (_vehicle_status.in_transition_mode || !_vehicle_status.is_rotary_wing) {
|
||||
_reset_pos_sp = true;
|
||||
_reset_alt_sp = true;
|
||||
|
||||
Reference in New Issue
Block a user