diff options
Diffstat (limited to 'tracker-s2bot')
-rw-r--r-- | tracker-s2bot/ftnoir_tracker_s2bot.cpp | 2 |
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 } |