Commit Graph
19 Commits
Author SHA1 Message Date
Unknown 4815e5ed19 Change sqrtf to std::sqrt 2020-09-05 00:23:58 -04:00
Oskar Weigl 412329d71a change to cmath by default 2020-09-04 19:46:12 -07:00
Oskar Weigl 711111e6fb change fmaxf to std max 2020-09-04 18:23:33 -07:00
Samuel Sadok 938f088fc2 make axis allocation static 2020-07-21 13:02:03 +02:00
Samuel Sadok 9155edfb17 Fix a numerical issue in the trajectory planner that could cause sudden jumps of the position setpoint.
If certain inputs were passed to trajectory planner, an expression inside the trajectory planner which is an argument to sqrtf() could become negative due to finite floating point accuracy.
This led to Vr_ == NaN and then Tf_ == 0, causing the trajectory to jump to the final setpoint instantaneously. To the user, this manifested as a sudden increase in velocity (limited by controller.config.vel_limit) and/or an overcurrent fault.

This bug was likely to show up when constantly sending trajectory setpoints while moving in the negative direction.

See also: https://discourse.odriverobotics.com/t/move-to-pos-not-works-well/4626
2020-05-06 19:25:39 +02:00
Unknown 1bdea53ec8 Improve testability 2020-01-08 22:11:50 -05:00
Unknown 9e782cce7b Revert "Formatting pass"
This reverts commit 2b58d15d8d.
2019-09-15 01:15:51 -04:00
Unknown 2b58d15d8d Formatting pass 2019-08-20 23:13:54 -04:00
Oskar Weigl 327ac51abf rewrite cpp side of trapezoidal trajectory 2018-09-24 22:45:04 -07:00
Oskar Weigl 4b6943e401 rewrite cpp trajectory module to match python 2018-09-23 22:00:00 -07:00
Unknown ea510fb8e5 Revert "Support overshoot moves"
This reverts commit 0ea6a5a37b.
2018-09-18 22:13:17 -04:00
Unknown 0ea6a5a37b Support overshoot moves 2018-09-15 23:08:40 -04:00
Unknown c65e7265e7 Move traj planning config to trap_traj config object 2018-09-03 17:13:14 -04:00
Unknown f29868e844 Fix bug in C++ deceleration planning code 2018-09-02 11:32:19 -04:00
Unknown 03bf297bd8 Add TrapTraj to Axis and Controller. Add move_to_pos funciton 2018-09-01 23:39:31 -04:00
Unknown 17831b1f43 Update trapTraj to match FIR_Planner.py algorithm 2018-08-12 13:03:26 -04:00
Unknown bea17772a0 Save final conditions also 2018-08-06 20:11:21 -04:00
Unknown b2f8fad5d4 Actually return the trajStep struct. 2018-08-06 20:09:03 -04:00
Unknown 6149d97334 Add Trapezoidal Trajectory class and functions 2018-08-06 20:07:06 -04:00