summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire/ftnoir_tracker_hat_settings.h
blob: 06d54e344c23d1decc644981f5226fdf90b06042 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* Copyright (c) 2012 Patrick Ruoff
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 */

#pragma once

#include <QtSerialPort/QSerialPort>

struct TrackerSettings
{
    void load_ini();
    void save_ini() const;

    bool EnableRoll;
    bool EnablePitch;
    bool EnableYaw;
    bool EnableX;
    bool EnableY;
    bool EnableZ;

    bool InvertRoll;
    bool InvertPitch;
    bool InvertYaw;
    bool InvertX;
    bool InvertY;
    bool InvertZ;

    int RollAxis;
    int PitchAxis;
    int YawAxis;
    int XAxis;
    int YAxis;
    int ZAxis;

    QString  CmdStart;
    QString  CmdStop;
    QString  CmdInit;
    QString  CmdReset;
    QString  CmdCenter;
    QString  CmdZero;

    int DelayInit;
    int DelayStart;
    int DelaySeq;

    bool BigEndian;
    bool EnableLogging;

    QString SerialPortName;
    QSerialPort::BaudRate pBaudRate;
    QSerialPort::DataBits pDataBits;
    QSerialPort::Parity pParity;
    QSerialPort::StopBits pStopBits;
    QSerialPort::FlowControl pFlowControl;

    int FPSArduino;
};