summaryrefslogtreecommitdiffhomepage
path: root/tracker-udp/ftnoir_tracker_udp.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-23 13:31:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 13:31:59 +0200
commit0888be6331e0f5c5a964788150172dcb9a61bb34 (patch)
tree974891a6d2112e4e652f96eec0e0da98fcfdbacf /tracker-udp/ftnoir_tracker_udp.h
parentb30fbd10720959bf16835891a2a802b38a1717bf (diff)
tracker/udp: minor fixes
- use clamp util function - only sleep until the next datagram arrives - check data for NaN before accepting
Diffstat (limited to 'tracker-udp/ftnoir_tracker_udp.h')
-rw-r--r--tracker-udp/ftnoir_tracker_udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-udp/ftnoir_tracker_udp.h b/tracker-udp/ftnoir_tracker_udp.h
index dfebd866..b93c5e93 100644
--- a/tracker-udp/ftnoir_tracker_udp.h
+++ b/tracker-udp/ftnoir_tracker_udp.h
@@ -30,7 +30,7 @@ protected:
void run() override;
private:
QUdpSocket sock;
- double last_recv_pose[6];
+ double last_recv_pose[6], last_recv_pose2[6];
QMutex mutex;
settings s;
volatile bool should_quit;