summaryrefslogtreecommitdiffhomepage
path: root/logic/tracker.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-27 15:01:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-27 15:58:31 +0200
commit4da5809f8901066ab912b84f08b110e55d89b067 (patch)
tree960ee643831ccb62b3c4010109243be566ad6a98 /logic/tracker.h
parent946d80a09181363ea44b33c6b633a6dd9b8a1a0c (diff)
logic/tracker: try harder to keep up constant Hz
Now time error is accumulated rather than using only the last iteration's error.
Diffstat (limited to 'logic/tracker.h')
-rw-r--r--logic/tracker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/logic/tracker.h b/logic/tracker.h
index 5be55ccb..ce2279ab 100644
--- a/logic/tracker.h
+++ b/logic/tracker.h
@@ -116,6 +116,8 @@ private:
state real_rotation, scaled_rotation;
euler_t t_center;
+ long backlog_time;
+
double map(double pos, Map& axis);
void logic();
void t_compensate(const rmat& rmat, const euler_t& ypr, euler_t& output,