summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-11 20:10:36 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-11 20:10:36 +0100
commit46257e812e5be5ddc4f68b7c3b7dc83c8f808cc1 (patch)
treeab4ca119c0d2b1d9925ce196245dde7a40fd885a /ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
parent282d0911782d828d5ff4a1011248afecbf095616 (diff)
add rotation value addition to freepie-udp
Otherwise gimbal lock singularities occur. Tested-by: @KyokushinPL
Diffstat (limited to 'ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h')
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
index 2dfb4e8f..d56c9f52 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.h
@@ -16,12 +16,16 @@ using namespace options;
struct settings {
pbundle b;
value<int> port, idx_x, idx_y, idx_z;
+ value<int> add_yaw, add_pitch, add_roll;
settings() :
b(bundle("freepie-udp-tracker")),
port(b, "port", 4237),
idx_x(b, "axis-index-x", 0),
idx_y(b, "axis-index-y", 1),
- idx_z(b, "axis-index-z", 2)
+ idx_z(b, "axis-index-z", 2),
+ add_yaw(b, "add-yaw-degrees", 0),
+ add_pitch(b, "add-pitch-degrees", 0),
+ add_roll(b, "add-roll-degrees", 0)
{}
};