diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-30 12:42:53 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-31 00:27:43 -0400 |
commit | e05c635489abe66097ab61ddbbf3afac3e10d0c3 (patch) | |
tree | bb8394b190d7a87fbab30def5565b669a99a711a /docs/Code_Overview.md | |
parent | f5cc355044931439cc27744e4a2446a24fcb87cd (diff) | |
download | kutter-e05c635489abe66097ab61ddbbf3afac3e10d0c3.tar.gz kutter-e05c635489abe66097ab61ddbbf3afac3e10d0c3.tar.xz kutter-e05c635489abe66097ab61ddbbf3afac3e10d0c3.zip |
stepcompreses: Change the step queue to use 32bit integers
The RaspberryPi processor implements 'double to int32' conversions
much faster than 'double to int64' conversions. Rework the code so
that steps stored in the queue are always a small offset from the last
sent step time. (In the unlikely event that a step is far from the
last step time, then the queue is flushed to maintain this invariant.)
This simplifies the step compression code as well - it no longer needs
to check for integer overflows.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs/Code_Overview.md')
0 files changed, 0 insertions, 0 deletions