mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
FlightTaskAuto: check avoidance progress only if avoidance is active
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user