summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-27 19:52:03 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-27 19:52:03 +0100
commit9990b05efb6fcd806ec5d996310f4a945a0b0fac (patch)
treecdfbacdd3b535ca594521265afaa4a1184c25201 /ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h
parent21dbb51ed05bffa69f036c6b82842aa0069b624f (diff)
merge in the right hatire branch this time!
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h')
-rw-r--r--ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h43
1 files changed, 32 insertions, 11 deletions
diff --git a/ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h b/ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h
index d6cf4fd9..2e84bde8 100644
--- a/ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h
+++ b/ftnoir_tracker_hatire/ftnoir_tracker_hat_settings.h
@@ -8,13 +8,15 @@
#ifndef FTNOIR_TRACKER_HAT_SETTINGS_H
#define FTNOIR_TRACKER_HAT_SETTINGS_H
-#include <QString>
+#include <QtSerialPort/QSerialPort>
//-----------------------------------------------------------------------------
struct TrackerSettings
{
- QString SerialPortName;
+ void load_ini();
+ void save_ini() const;
+
bool EnableRoll;
bool EnablePitch;
bool EnableYaw;
@@ -30,15 +32,34 @@ struct TrackerSettings
bool InvertZ;
- int RollAxis;
- int PitchAxis;
- int YawAxis;
- int XAxis;
- int YAxis;
- int ZAxis;
+ int RollAxe;
+ int PitchAxe;
+ int YawAxe;
+ int XAxe;
+ int YAxe;
+ int ZAxe;
+
+ QString CmdStart;
+ QString CmdStop;
+ QString CmdInit;
+ QString CmdReset;
+ QString CmdCenter;
+ QString CmdZero;
+
+ int DelayInit;
+ int DelayStart;
+ int DelaySeq;
+
+ bool BigEndian;
+
+ QString SerialPortName;
+ QSerialPort::BaudRate pBaudRate;
+ QSerialPort::DataBits pDataBits;
+ QSerialPort::Parity pParity;
+ QSerialPort::StopBits pStopBits;
+ QSerialPort::FlowControl pFlowControl;
- void load_ini();
- void save_ini() const;
};
-#endif //FTNOIR_TRACKER_HAT_SETTINGS_H
+
+#endif //FTNOIR_TRACKER_HAT_SETTINGS_H \ No newline at end of file