diff --git a/Servo/Servo.pro b/Servo/Servo.pro index cae823f..3162733 100644 --- a/Servo/Servo.pro +++ b/Servo/Servo.pro @@ -18,11 +18,15 @@ DEFINES += QT_DEPRECATED_WARNINGS #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ - Servo.cpp + $$files(*.cpp, true) \ \ + + HEADERS += \ - Servo_global.h \ - Servo.h + $$files(*.h, true) \ \ + + +INCLUDEPATH += $$PWD/include # Default rules for deployment. unix { diff --git a/Servo/include/ModbusMaster.h b/Servo/include/ModbusMaster.h new file mode 100644 index 0000000..cd836ed --- /dev/null +++ b/Servo/include/ModbusMaster.h @@ -0,0 +1,17 @@ +#ifndef MODBUSMASTER_H +#define MODBUSMASTER_H + +#include + +class ModbusMaster : public QObject +{ + Q_OBJECT +public: + explicit ModbusMaster(QObject *parent = nullptr); + +signals: + +public slots: +}; + +#endif // MODBUSMASTER_H diff --git a/Servo/include/ModbusWrapper.h b/Servo/include/ModbusWrapper.h new file mode 100644 index 0000000..c5373ac --- /dev/null +++ b/Servo/include/ModbusWrapper.h @@ -0,0 +1,17 @@ +#ifndef MODBUSWRAPPER_H +#define MODBUSWRAPPER_H + +#include + +class ModbusWrapper : public QObject +{ + Q_OBJECT +public: + explicit ModbusWrapper(QObject *parent = nullptr); + +signals: + +public slots: +}; + +#endif // MODBUSWRAPPER_H diff --git a/Servo/include/ServoController.h b/Servo/include/ServoController.h new file mode 100644 index 0000000..7a37782 --- /dev/null +++ b/Servo/include/ServoController.h @@ -0,0 +1,11 @@ +#ifndef SERVOCONTROLLER_H +#define SERVOCONTROLLER_H + + +class ServoController +{ +public: + ServoController(); +}; + +#endif // SERVOCONTROLLER_H diff --git a/Servo/src/ModbusMaster.cpp b/Servo/src/ModbusMaster.cpp new file mode 100644 index 0000000..705072b --- /dev/null +++ b/Servo/src/ModbusMaster.cpp @@ -0,0 +1,6 @@ +#include "../include/ModbusMaster.h" + +ModbusMaster::ModbusMaster(QObject *parent) : QObject(parent) +{ + +} diff --git a/Servo/src/ModbusWrapper.cpp b/Servo/src/ModbusWrapper.cpp new file mode 100644 index 0000000..b835c00 --- /dev/null +++ b/Servo/src/ModbusWrapper.cpp @@ -0,0 +1,5 @@ +#include "ModbusWrapper.h" + +ModbusWrapper::ModbusWrapper(QObject* parent) : QObject(parent) +{ +} diff --git a/Servo/src/ServoController.cpp b/Servo/src/ServoController.cpp new file mode 100644 index 0000000..449faa7 --- /dev/null +++ b/Servo/src/ServoController.cpp @@ -0,0 +1,5 @@ +#include "ServoController.h" + +ServoController::ServoController() +{ +}