-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor limit3 to resolve overshooting and drifting
Also, add velocity constraint checks in tests. There's some source of error that makes it difficult to stop exactly before the limit, and there can be a small overshoot, less than 1% in the test example. The tests' limit checks are fudged to accomodate this. After beating my head at this for quite some time, I've decided to chalk it up to JMK's warning about "the discrete time nature of the code vs continuous time of normal physics, where V = integral(A) and P = integral(V)" [1]. [1]: #240 (comment)
- Loading branch information
Showing
4 changed files
with
119 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters