diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-09 16:21:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-09 16:21:32 +0200 |
commit | fd0ad89c7c6f61aa14d6e908e9217121f4afa5c6 (patch) | |
tree | 5274ef7761b249c5ee48a823a48b2c744c4df593 /tracker-hatire/ftnoir_tracker_hat.h | |
parent | e6fb571266c22f120c0111731da1f2e6bf4d812d (diff) |
tracker/hatire: move to opentrack settings API
Diffstat (limited to 'tracker-hatire/ftnoir_tracker_hat.h')
-rwxr-xr-x | tracker-hatire/ftnoir_tracker_hat.h | 30 |
1 files changed, 4 insertions, 26 deletions
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 |