Skip to content

Commit

Permalink
AR_PosControl: integrate avoidance with proximity only
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Mar 11, 2024
1 parent 65b304c commit b6e96ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/APM_Control/AR_PosControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void AR_PosControl::update(float dt)
if (avoid != nullptr) {
Vector3f vel_3d_cms{_vel_target.x * 100.0f, _vel_target.y * 100.0f, 0.0f};
const float accel_max_cmss = MIN(_accel_max, _lat_accel_max) * 100.0;
avoid->adjust_velocity(vel_3d_cms, backing_up, _p_pos.kP(), accel_max_cmss, _p_pos.kP(), accel_max_cmss, dt);
avoid->adjust_velocity(vel_3d_cms, backing_up, _p_pos.kP(), accel_max_cmss, _p_pos.kP(), accel_max_cmss, dt, false);
_vel_target.x = vel_3d_cms.x * 0.01;
_vel_target.y = vel_3d_cms.y * 0.01;
}
Expand Down

0 comments on commit b6e96ff

Please sign in to comment.