Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VelocitySmoothing library fixes #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

junwoo091400
Copy link

Description

Make functions synonymous with the
https://github.com/PX4/PX4-Autopilot/blob/37fa4bccb638410734e077ef18c3c9c0ecd117c4/src/lib/motion_planning/VelocitySmoothing.hpp

Main Changes

  1. updateDurations
  • Previously : took the 'time' parameter
  • Now : takes the 'velocity setpoint' parameter
  1. updateTrajectory
  • Previously : Had a wrapper update function, which was only constraining velocity setpoint
  • Now : Updates the whole trajectory internal state.
  1. Comments : Added comments to differentiate the public methods & private methods, as well as function param descriptions.

Questions

  1. It seems like this PR broke the internal state 'X' integration (it flattens out even when velocity setpoint is 0 🤔). Can't figure out now why this change has been introduced. Ideas? @bresch
    Before the Change
    Figure_1
    After the Change (this PR)
    Junwoos

  2. Does it make sense to call the "updateDurations" every loop? Even in the upstream implementation, since it ALWAYS resets the internally tracked time

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.

1 participant