This file contains hidden or 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
class AccelLimiter | |
{ | |
public: | |
int accel; // unit is Hz/s, i.e.: pulses/s2, always positive | |
int maxAccel; //this is the physical limitation. A frequency change above this value between consecutive updates is not allowed. Always positive. | |
AccelLimiter(int accel, int maxAccel) | |
: accel(accel), maxAccel(maxAccel) | |
{ | |
} |
OlderNewer