mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 07:03:33 +08:00
constant acceleration breaking for collision prevention
This commit is contained in:
committed by
Mathieu Bresciani
parent
6f9598c76a
commit
8427cd3051
@@ -134,7 +134,7 @@ void FlightTaskManualPosition::_scaleSticks()
|
||||
|
||||
// collision prevention
|
||||
if (_collision_prevention.is_active()) {
|
||||
_collision_prevention.modifySetpoint(vel_sp_xy, _velocity_scale);
|
||||
_collision_prevention.modifySetpoint(vel_sp_xy, _velocity_scale, _velocity);
|
||||
}
|
||||
|
||||
_velocity_setpoint(0) = vel_sp_xy(0);
|
||||
|
||||
Reference in New Issue
Block a user