mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:03:33 +08:00
Collision prevention improvements (#11866)
* match max vel in col-prev to regular pos ctrl * change warning criterium to avoid float error * disable push back from obstacles * use floats consistently
This commit is contained in:
@@ -134,7 +134,7 @@ void FlightTaskManualPosition::_scaleSticks()
|
||||
|
||||
// collision prevention
|
||||
if (_collision_prevention.is_active()) {
|
||||
_collision_prevention.modifySetpoint(vel_sp_xy, _constraints.speed_xy);
|
||||
_collision_prevention.modifySetpoint(vel_sp_xy, _velocity_scale);
|
||||
}
|
||||
|
||||
_velocity_setpoint(0) = vel_sp_xy(0);
|
||||
|
||||
Reference in New Issue
Block a user