Tested on my Create2, running Ubuntu 18.04 on a Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (Intel NUC).
The underlying issue appears to be that dt values between onData calls do not accurately represent the dt values at which the encoders are sampled. It appears that averaging the onDatadt values yields more accurate results.
Fixes #36
Tested on my Create2, running Ubuntu 18.04 on a Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (Intel NUC).
The underlying issue appears to be that
dt
values betweenonData
calls do not accurately represent thedt
values at which the encoders are sampled. It appears that averaging theonData
dt
values yields more accurate results.