summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 22:25:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commitd65936200a2756e6619a109fa6fa673b91df802e (patch)
tree80b6b6fc7ba9023cbe47290b8ae1bc5468a19bb1 /logic/pipeline.cpp
parent4046773c41ee3c0f65840828ab983cfd13451c85 (diff)
modernize C++ syntax
No visible changes (hopefully).
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r--logic/pipeline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp
index 7b4444c3..bf264315 100644
--- a/logic/pipeline.cpp
+++ b/logic/pipeline.cpp
@@ -130,7 +130,7 @@ Pose reltrans::apply_pipeline(reltrans_state state, const Pose& value,
interp_timer.start();
- if (RC_phase + 1 != std::size(RC_phases) &&
+ if (RC_phase + 1 < std::size(RC_phases) &&
interp_phase_timer.elapsed_seconds() > RC_time_deltas[RC_phase])
{
RC_phase++;
@@ -252,7 +252,7 @@ void emit_nan_check_msg(const char* text, const char* fun, int line)
qDebug() << "nan check failed"
<< "for:" << text
<< "function:" << fun
- << "line:" << line;
+ << "line:" << line
);
}
@@ -577,7 +577,7 @@ void pipeline::run()
{
qDebug() << "tracker: backlog interval overflow"
<< time_cast<ms>(backlog_time).count() << "ms";
- backlog_time = backlog_time.zero();
+ backlog_time = ns::zero();
}
backlog_time += ns(elapsed_nsecs - const_sleep_ms);