diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-08 06:51:51 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-08 06:51:51 +0200 |
commit | 027fd0f8b4efcf005a0bba850109089737f40a3f (patch) | |
tree | 44261588d2024e3704b1acc9111682ad091dccff /ftnoir_tracker_hatire/ftnoir_tracker_hat.h | |
parent | ab47eac174db02710a7fa6c194e00c31cef755a4 (diff) |
retab and reformat only
Diffstat (limited to 'ftnoir_tracker_hatire/ftnoir_tracker_hat.h')
-rw-r--r-- | ftnoir_tracker_hatire/ftnoir_tracker_hat.h | 144 |
1 files changed, 72 insertions, 72 deletions
diff --git a/ftnoir_tracker_hatire/ftnoir_tracker_hat.h b/ftnoir_tracker_hatire/ftnoir_tracker_hat.h index d9dd0694..9471ebfb 100644 --- a/ftnoir_tracker_hatire/ftnoir_tracker_hat.h +++ b/ftnoir_tracker_hatire/ftnoir_tracker_hat.h @@ -4,7 +4,7 @@ #ifdef OPENTRACK_API # include "opentrack/plugin-support.hpp" #else -# include "..\ftnoir_tracker_base\ftnoir_tracker_base.h" +# include "..\ftnoir_tracker_base\ftnoir_tracker_base.h" #endif #include "ftnoir_tracker_hat_settings.h" #include "ftnoir_arduino_type.h" @@ -22,11 +22,11 @@ #define VER_FILEVERSION_STR "Version 2.1.1\0" class FTNoIR_Tracker : public QObject, public ITracker -{ - Q_OBJECT +{ + Q_OBJECT public: - FTNoIR_Tracker(); - ~FTNoIR_Tracker(); + FTNoIR_Tracker(); + ~FTNoIR_Tracker(); #ifdef OPENTRACK_API void start_tracker(QFrame*); @@ -40,77 +40,77 @@ public: bool GiveHeadPoseData(THeadPoseData *data); void notifyCenter(); #endif - void applysettings(const TrackerSettings& settings); - bool notifyZeroed(); - void reset(); - void SerialInfo(); - void sendcmd(const QByteArray &cmd); - void get_info( int *tps ); + void applysettings(const TrackerSettings& settings); + bool notifyZeroed(); + void reset(); + void SerialInfo(); + void sendcmd(const QByteArray &cmd); + void get_info( int *tps ); private Q_SLOTS: void SerialRead(); - void Log(QString message); + void Log(QString message); signals: void sendMsgInfo(const QByteArray &MsgInfo); private: - QSerialPort *ComPort; + QSerialPort *ComPort; TArduinoData ArduinoData, HAT ; // Trame from Arduino QByteArray dataRead; QByteArray dataToSend; - QByteArray Begin; + QByteArray Begin; QByteArray End; - QMutex mutex; - int frame_cnt; + QMutex mutex; + int frame_cnt; bool new_frame; TrackerSettings settings; - bool bEnableRoll; - bool bEnablePitch; - bool bEnableYaw; - bool bEnableX; - bool bEnableY; - bool bEnableZ; - - bool bInvertRoll; - bool bInvertPitch; - bool bInvertYaw; - bool bInvertX; - bool bInvertY; - bool bInvertZ; - bool bEnableLogging; - - int iRollAxe; - int iPitchAxe; - int iYawAxe; - int iXAxe; - int iYAxe; - int iZAxe; - - QByteArray sCmdStart; - QByteArray sCmdStop; - QByteArray sCmdInit; - QByteArray sCmdReset; - QByteArray sCmdCenter; - QByteArray sCmdZero; - - int iDelayInit; - int iDelayStart; - int iDelaySeq; - - bool bBigEndian; - - QString sSerialPortName; - QSerialPort::BaudRate iBaudRate; - QSerialPort::DataBits iDataBits; - QSerialPort::Parity iParity; - QSerialPort::StopBits iStopBits; - QSerialPort::FlowControl iFlowControl; - - QFile flDiagnostics; + bool bEnableRoll; + bool bEnablePitch; + bool bEnableYaw; + bool bEnableX; + bool bEnableY; + bool bEnableZ; + + bool bInvertRoll; + bool bInvertPitch; + bool bInvertYaw; + bool bInvertX; + bool bInvertY; + bool bInvertZ; + bool bEnableLogging; + + int iRollAxe; + int iPitchAxe; + int iYawAxe; + int iXAxe; + int iYAxe; + int iZAxe; + + QByteArray sCmdStart; + QByteArray sCmdStop; + QByteArray sCmdInit; + QByteArray sCmdReset; + QByteArray sCmdCenter; + QByteArray sCmdZero; + + int iDelayInit; + int iDelayStart; + int iDelaySeq; + + bool bBigEndian; + + QString sSerialPortName; + QSerialPort::BaudRate iBaudRate; + QSerialPort::DataBits iDataBits; + QSerialPort::Parity iParity; + QSerialPort::StopBits iStopBits; + QSerialPort::FlowControl iFlowControl; + + QFile flDiagnostics; #ifdef OPENTRACK_API int iFpsArduino; #endif @@ -125,33 +125,33 @@ private: //******************************************************************************************************* class TrackerDll : #if defined(OPENTRACK_API) - public Metadata +public Metadata #else - public ITrackerDll +public ITrackerDll #endif { public: - TrackerDll(); - ~TrackerDll(); + TrackerDll(); + ~TrackerDll(); #ifndef OPENTRACK_API - void Initialize(); + void Initialize(); #endif - + #ifdef OPENTRACK_API QString name(); QIcon icon(); #else - void getFullName(QString *strToBeFilled); - void getShortName(QString *strToBeFilled); - void getDescription(QString *strToBeFilled); - void getIcon(QIcon *icon); + void getFullName(QString *strToBeFilled); + void getShortName(QString *strToBeFilled); + void getDescription(QString *strToBeFilled); + void getIcon(QIcon *icon); #endif private: - QString trackerFullName; // Trackers' name and description - QString trackerShortName; - QString trackerDescription; + QString trackerFullName; // Trackers' name and description + QString trackerShortName; + QString trackerDescription; }; |