summaryrefslogtreecommitdiffhomepage
path: root/tracker-s2bot/ftnoir_tracker_s2bot.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:22:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-09-23 19:22:18 +0200
commit2658bc66b8b68212594c71f7b51199921c3c1df9 (patch)
tree4edda3c602a069b310f9923db22b0fa87ef6b229 /tracker-s2bot/ftnoir_tracker_s2bot.cpp
parentec34d6575fa03f1e137739ee1946f0ba9d3f2830 (diff)
use std::size
Diffstat (limited to 'tracker-s2bot/ftnoir_tracker_s2bot.cpp')
-rw-r--r--tracker-s2bot/ftnoir_tracker_s2bot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-s2bot/ftnoir_tracker_s2bot.cpp b/tracker-s2bot/ftnoir_tracker_s2bot.cpp
index 88362aa4..6621e605 100644
--- a/tracker-s2bot/ftnoir_tracker_s2bot.cpp
+++ b/tracker-s2bot/ftnoir_tracker_s2bot.cpp
@@ -73,7 +73,7 @@ void tracker_s2bot::run() {
const int axis = order[i];
const int add_idx = add_indices[i];
int add = 0;
- if (add_idx >= 0 && add_idx < (int)(sizeof(add_cbx) / sizeof(*add_cbx)))
+ if (add_idx >= 0 && add_idx < (int)std::size(add_cbx))
add = add_cbx[add_idx];
pose[Yaw + i] = orient[axis] + add; // * r2d if it was radians
}