mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 21:59:05 +08:00
FlightTaskAuto: check avoidance progress only if avoidance is active
This commit is contained in:
parent
cef7673969
commit
ba4e633bd4
@ -221,7 +221,9 @@ bool FlightTaskAuto::_evaluateTriplets()
|
||||
_updateAvoidanceWaypoints();
|
||||
}
|
||||
|
||||
_checkAvoidanceProgress();
|
||||
if (MPC_OBS_AVOID.get()) {
|
||||
_checkAvoidanceProgress();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -109,7 +109,8 @@ protected:
|
||||
(ParamFloat<px4::params::MPC_CRUISE_90>) MPC_CRUISE_90, // speed at corner when angle is 90 degrees move to line
|
||||
(ParamFloat<px4::params::NAV_ACC_RAD>) NAV_ACC_RAD, // acceptance radius at which waypoints are updated move to line
|
||||
(ParamFloat<px4::params::NAV_MC_ALT_RAD>) NAV_MC_ALT_RAD, //vertical acceptance radius at which waypoints are updated
|
||||
(ParamInt<px4::params::MPC_YAW_MODE>) MPC_YAW_MODE // defines how heading is executed
|
||||
(ParamInt<px4::params::MPC_YAW_MODE>) MPC_YAW_MODE, // defines how heading is executed,
|
||||
(ParamInt<px4::params::MPC_OBS_AVOID>) MPC_OBS_AVOID // obstacle avoidance active
|
||||
);
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user