a new (slightly inelegant) stab at eliminating the slow tail problem

This commit is contained in:
Simen Svale Skogsrud
2011-02-16 22:58:53 +01:00
parent c02a6e2366
commit 1ed2195e11
4 changed files with 89 additions and 5 deletions

View File

@ -45,6 +45,7 @@ typedef struct {
// Settings for the trapezoid generator
uint32_t initial_rate; // The jerk-adjusted step rate at start of block
uint32_t final_rate; // The minimal rate at exit
int32_t rate_delta; // The steps/minute to add or subtract when changing speed (must be positive)
uint32_t accelerate_until; // The index of the step event on which to stop acceleration
uint32_t decelerate_after; // The index of the step event on which to start decelerating