From fd0ad89c7c6f61aa14d6e908e9217121f4afa5c6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 9 May 2016 16:21:32 +0200 Subject: tracker/hatire: move to opentrack settings API --- tracker-hatire/ftnoir_tracker_hat.h | 30 ++++-------------------------- 1 file changed, 4 insertions(+), 26 deletions(-) (limited to 'tracker-hatire/ftnoir_tracker_hat.h') diff --git a/tracker-hatire/ftnoir_tracker_hat.h b/tracker-hatire/ftnoir_tracker_hat.h index e951c69f..36d56594 100755 --- a/tracker-hatire/ftnoir_tracker_hat.h +++ b/tracker-hatire/ftnoir_tracker_hat.h @@ -27,48 +27,26 @@ public: void start_tracker(QFrame*); void data(double *data); //void center(); - void applysettings(const TrackerSettings& settings); //bool notifyZeroed(); void reset(); void get_info( int *tps ); void serial_info(); void send_serial_command(const QByteArray& x); + hatire_thread t; private: TArduinoData ArduinoData, HAT; QByteArray Begin; QByteArray End; - hatire_thread t; - thread_settings ts; - // XXX move to settings api -sh 20160410 - TrackerSettings settings; + TrackerSettings s; int frame_cnt; - bool bEnableRoll; - bool bEnablePitch; - bool bEnableYaw; - bool bEnableX; - bool bEnableY; - bool bEnableZ; - - bool bInvertRoll; - bool bInvertPitch; - bool bInvertYaw; - bool bInvertX; - bool bInvertY; - bool bInvertZ; - - int iRollAxis; - int iPitchAxis; - int iYawAxis; - int iXAxis; - int iYAxis; - int iZAxis; - volatile int CptError; + + static inline QByteArray to_latin1(const QString& str) { return str.toLatin1(); } }; class TrackerDll : public Metadata -- cgit v1.2.3