Skip to content

Smooth accel#44

Draft
ludovicb1239 wants to merge 5 commits into
mainfrom
smooth-accel
Draft

Smooth accel#44
ludovicb1239 wants to merge 5 commits into
mainfrom
smooth-accel

Conversation

@ludovicb1239

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates DriveControl::drive() to make acceleration/deceleration smoother by deriving angular and linear command limits from current measured velocity rather than only from scalar speed ramps.

Changes:

  • Reworks angular speed limiting to depend on heading error sign and current angular velocity.
  • Replaces scalar linear speed ramp with a vector-based velocity update aligned to the lookahead direction, then caps to top speed.
  • Adjusts the linear P-controller step to use the new vector speed instead of a normalized direction scaled by a scalar speed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/navigation/driveControl.cpp
Comment thread src/navigation/driveControl.cpp
@ludovicb1239 ludovicb1239 linked an issue Apr 2, 2026 that may be closed by this pull request
@ludovicb1239 ludovicb1239 marked this pull request as draft May 25, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accel Control

2 participants