summaryrefslogtreecommitdiffhomepage
path: root/tracker-s2bot/ftnoir_tracker_s2bot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-s2bot/ftnoir_tracker_s2bot.cpp')
-rw-r--r--tracker-s2bot/ftnoir_tracker_s2bot.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tracker-s2bot/ftnoir_tracker_s2bot.cpp b/tracker-s2bot/ftnoir_tracker_s2bot.cpp
index a7411fb7..44ae6132 100644
--- a/tracker-s2bot/ftnoir_tracker_s2bot.cpp
+++ b/tracker-s2bot/ftnoir_tracker_s2bot.cpp
@@ -18,6 +18,15 @@ tracker_s2bot::~tracker_s2bot()
wait();
}
+static constexpr int add_cbx[] =
+{
+ 0,
+ 90,
+ -90,
+ 180,
+ -180,
+};
+
void tracker_s2bot::run() {
if (s.freq == 0) s.freq = 10;
timer.setInterval(1000.0/s.freq);
@@ -44,15 +53,6 @@ void tracker_s2bot::run() {
clamp(s.idx_z, 0, 3),
};
- static constexpr int add_cbx[] =
- {
- 0,
- 90,
- -90,
- 180,
- -180,
- };
-
int add_indices[] = { s.add_yaw, s.add_pitch, s.add_roll, };
double orient[4] {};