summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_udp/ftnoir_tracker_udp.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-06-06 14:03:36 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-06-06 14:03:36 +0200
commit69a8c9eba04eb1d955c5c0ebb1df0cd4ea217930 (patch)
tree93f125816574d5b9c006a5508d52f15d2a01c356 /ftnoir_tracker_udp/ftnoir_tracker_udp.h
parent793183469d2c02e59ee91a072b8f59153870415c (diff)
udp tracker: allow for adding +-90/+-180 to each axis
Follows similar code in freepie-udp tracker. Helps with centering on inertial devices.
Diffstat (limited to 'ftnoir_tracker_udp/ftnoir_tracker_udp.h')
-rw-r--r--ftnoir_tracker_udp/ftnoir_tracker_udp.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ftnoir_tracker_udp/ftnoir_tracker_udp.h b/ftnoir_tracker_udp/ftnoir_tracker_udp.h
index 51b5d9ab..160e4352 100644
--- a/ftnoir_tracker_udp/ftnoir_tracker_udp.h
+++ b/ftnoir_tracker_udp/ftnoir_tracker_udp.h
@@ -9,9 +9,13 @@ using namespace options;
struct settings : opts {
value<int> port;
+ value<int> add_yaw, add_pitch, add_roll;
settings() :
opts("udp-tracker"),
- port(b, "port", 4242)
+ port(b, "port", 4242),
+ add_yaw(b, "add-yaw", 0),
+ add_pitch(b, "add-pitch", 0),
+ add_roll(b, "add-roll", 0)
{}
};