mirror of
https://github.com/YikeStone/Qt-Advent.git
synced 2025-08-02 18:04:08 +05:30
39 lines
782 B
C++
39 lines
782 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
#include <QMainWindow>
|
|
#include <iostream>
|
|
#include <QThread>
|
|
#include <QtMath>
|
|
#include <QtSerialPort/QSerialPort>
|
|
#include <QtSerialPort/QSerialPortInfo>
|
|
#include "IMUFilter.h"
|
|
using namespace std;
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QSerialPort *serial;
|
|
QTimer *timer;
|
|
explicit MainWindow(QWidget *parent = 0);
|
|
~MainWindow();
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
protected:
|
|
void run();
|
|
void newData_1(double w, double t);
|
|
void newData_2(double w, double t);
|
|
void newData_3(double w, double t);
|
|
void newData_4(double w, double t);
|
|
private slots:
|
|
void readData();
|
|
//void mouseWheel();
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|