diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-23 13:31:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-23 13:31:59 +0200 |
commit | 0888be6331e0f5c5a964788150172dcb9a61bb34 (patch) | |
tree | 974891a6d2112e4e652f96eec0e0da98fcfdbacf /tracker-udp/ftnoir_tracker_udp.h | |
parent | b30fbd10720959bf16835891a2a802b38a1717bf (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.h | 2 |
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; |