├── .gitattributes ├── .gitignore ├── ChartConfig ├── .qmake.stash ├── ChartConfig.pri ├── ChartConfig.pro ├── ChartConfig.pro.user ├── Makefile ├── Makefile.Debug ├── Makefile.Release ├── chartconfig.cpp ├── chartconfig.h ├── chartconfig.ui ├── images │ ├── 132.bmp │ ├── 3.ico │ ├── 39.ico │ ├── 414.bmp │ ├── 416.bmp │ ├── 418.bmp │ ├── 43.ico │ ├── 828.bmp │ ├── dis3.ico │ └── f14.ico ├── main.cpp ├── qwdialogpen.cpp ├── qwdialogpen.h ├── qwdialogpen.ui ├── res.qrc ├── samp9_2.pro.user ├── ui_chartconfig.h └── ui_qwdialogpen.h ├── DllRead ├── .idea │ ├── .gitignore │ ├── DllRead.iml │ ├── misc.xml │ └── modules.xml ├── .qmake.stash ├── DllRead.pro ├── DllRead.pro.user ├── Makefile ├── Makefile.Debug ├── Makefile.Release ├── USBDAQ8API.h ├── dllread.cpp ├── dllread.h ├── dllread.ui ├── dllreadread.pri ├── main.cpp ├── object_script.DllRead.Debug ├── object_script.DllRead.Release ├── object_script.chartconfig.Debug ├── object_script.chartconfig.Release ├── ui_chartconfig.h ├── ui_dllread.h ├── ui_qwdialogpen.h └── 直接解压到当前文件夹.rar ├── LICENSE ├── demo.png ├── gause ├── .qmake.stash ├── Makefile ├── Makefile.Debug ├── Makefile.Release ├── gause.cpp ├── gause.h ├── gause.pro ├── gause.pro.user ├── gause.ui ├── main.cpp └── ui_gause.h ├── qcustomcontrols ├── CstmSpeedPanel │ ├── CstmSpeedPanel.cpp │ ├── CstmSpeedPanel.h │ ├── CstmSpeedPanel.pri │ ├── CstmSpeedPanel │ │ ├── CstmSpeedPanel.pro │ │ ├── CstmSpeedPanel.pro.user │ │ ├── main.cpp │ │ ├── speedpanel.cpp │ │ ├── speedpanel.h │ │ └── speedpanel.ui │ └── README.md ├── button │ ├── QtNavButton.cpp │ ├── QtNavButton.h │ └── button.pri ├── gauge │ ├── QtGaugeProgress.cpp │ ├── QtGaugeProgress.h │ └── gauge.pri ├── progressbar │ ├── QtColorProgressBar.cpp │ ├── QtColorProgressBar.h │ ├── QtRoundProgressBar.cpp │ ├── QtRoundProgressBar.h │ ├── QtRoundProgressBar.pri │ ├── QtStateProgressBar.cpp │ ├── QtStateProgressBar.h │ ├── QtWaitProgressBar.cpp │ ├── QtWaitProgressBar.h │ ├── QtZoomCircleWait.cpp │ ├── QtZoomCircleWait.h │ └── progressbar.pri ├── qcustomcontrols.pri └── view │ ├── QtNavListView.cpp │ ├── QtNavListView.h │ ├── QtNavTreeView.cpp │ ├── QtNavTreeView.h │ └── view.pri ├── readme.md ├── serialwidget ├── .qmake.stash ├── Makefile ├── Makefile.Debug ├── Makefile.Release ├── main.cpp ├── object_script.SerialPort.Debug ├── object_script.SerialPort.Release ├── pid.cpp ├── pid.h ├── pin.png ├── serial_qc - 副本.qrc ├── serial_qc.qrc ├── serialwidget.cpp ├── serialwidget.h ├── serialwidget.pri ├── serialwidget.pro ├── serialwidget.pro.user ├── serialwidget.ui ├── set.png ├── ui_chartconfig.h ├── ui_qwdialogpen.h ├── ui_serialwidget.h └── usb.png ├── simulinkmotor ├── .idea │ ├── .gitignore │ ├── misc.xml │ ├── modules.xml │ └── simulinkmotor.iml ├── CMakeLists.txt ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.16.5 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeRCCompiler.cmake │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ └── CMakeCCompilerId.c │ │ │ └── CompilerIdCXX │ │ │ │ └── CMakeCXXCompilerId.cpp │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── feature_tests.bin │ │ ├── feature_tests.cxx │ │ ├── progress.marks │ │ └── simulinkmotor.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── includes_CXX.rsp │ │ │ ├── link.txt │ │ │ ├── linklibs.rsp │ │ │ ├── objects1.rsp │ │ │ └── progress.make │ ├── Makefile │ ├── cmake_install.cmake │ └── simulinkmotor.cbp ├── ert_main.cpp ├── main.cpp ├── motor.cpp ├── motor.h ├── motor.pri ├── motor_private.h ├── motor_types.h ├── rtw_continuous.h ├── rtw_main.cpp ├── rtw_solver.h ├── rtwtypes.h └── serialwidget.pri ├── simulinkpid ├── .idea │ ├── .gitignore │ ├── misc.xml │ ├── modules.xml │ └── simulinkpid.iml ├── CMakeLists.txt ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.16.5 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeRCCompiler.cmake │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ └── CMakeCCompilerId.c │ │ │ └── CompilerIdCXX │ │ │ │ └── CMakeCXXCompilerId.cpp │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── feature_tests.bin │ │ ├── feature_tests.cxx │ │ ├── progress.marks │ │ └── simulinkpid.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── includes_CXX.rsp │ │ │ ├── link.txt │ │ │ ├── linklibs.rsp │ │ │ ├── objects1.rsp │ │ │ └── progress.make │ ├── Makefile │ ├── cmake_install.cmake │ └── simulinkpid.cbp ├── ert_main.cpp ├── main.cpp ├── pidmodel.cpp ├── pidmodel.h ├── pidmodel_private.h ├── pidmodel_types.h ├── rtwtypes.h ├── simulinkpid.pri └── simulinkpid.rar ├── simulinkpid_nofliter ├── .idea │ ├── .gitignore │ ├── misc.xml │ ├── modules.xml │ └── simulinkpid_nofliter.iml ├── CMakeLists.txt ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.16.5 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeRCCompiler.cmake │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ └── CMakeCCompilerId.c │ │ │ └── CompilerIdCXX │ │ │ │ └── CMakeCXXCompilerId.cpp │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── feature_tests.bin │ │ ├── feature_tests.cxx │ │ ├── progress.marks │ │ └── simulinkpid_nofliter.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── includes_CXX.rsp │ │ │ ├── link.txt │ │ │ ├── linklibs.rsp │ │ │ ├── objects1.rsp │ │ │ └── progress.make │ ├── Makefile │ ├── cmake_install.cmake │ └── simulinkpid_nofliter.cbp ├── ert_main.cpp ├── main.cpp ├── pidmodel.cpp ├── pidmodel.h ├── pidmodel_private.h ├── pidmodel_types.h ├── rtw_continuous.h ├── rtw_solver.h ├── rtwtypes.h ├── simulinkpid_nofliter.pri └── simulinkpid_nofliter.rar ├── simulinkwave ├── .idea │ ├── .gitignore │ ├── encodings.xml │ ├── misc.xml │ ├── modules.xml │ └── simulinkwave.iml ├── CMakeLists.txt ├── cmake-build-debug │ ├── CMakeCache.txt │ ├── CMakeFiles │ │ ├── 3.16.5 │ │ │ ├── CMakeCCompiler.cmake │ │ │ ├── CMakeCXXCompiler.cmake │ │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ │ ├── CMakeRCCompiler.cmake │ │ │ ├── CMakeSystem.cmake │ │ │ ├── CompilerIdC │ │ │ │ └── CMakeCCompilerId.c │ │ │ └── CompilerIdCXX │ │ │ │ └── CMakeCXXCompilerId.cpp │ │ ├── CMakeDirectoryInformation.cmake │ │ ├── CMakeOutput.log │ │ ├── Makefile.cmake │ │ ├── Makefile2 │ │ ├── TargetDirectories.txt │ │ ├── clion-environment.txt │ │ ├── clion-log.txt │ │ ├── cmake.check_cache │ │ ├── feature_tests.bin │ │ ├── feature_tests.cxx │ │ ├── progress.marks │ │ └── simulinkwave.dir │ │ │ ├── CXX.includecache │ │ │ ├── DependInfo.cmake │ │ │ ├── build.make │ │ │ ├── cmake_clean.cmake │ │ │ ├── depend.internal │ │ │ ├── depend.make │ │ │ ├── flags.make │ │ │ ├── includes_CXX.rsp │ │ │ ├── link.txt │ │ │ ├── linklibs.rsp │ │ │ ├── objects1.rsp │ │ │ └── progress.make │ ├── Makefile │ ├── cmake_install.cmake │ └── simulinkwave.cbp ├── ert_main.cpp ├── main.cpp ├── rtw_continuous.h ├── rtw_solver.h ├── rtwtypes.h ├── simulinkwave.pri ├── wave.cpp ├── wave.h ├── wave_private.h └── wave_types.h └── 文档 └── 基于Qt的直流电机转速的开环标定与闭环PID控制.pdf /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | -------------------------------------------------------------------------------- /ChartConfig/.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.QT_COMPILER_STDCXX = 201402L 2 | QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7 3 | QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3 4 | QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0 5 | QMAKE_CXX.COMPILER_MACROS = \ 6 | QT_COMPILER_STDCXX \ 7 | QMAKE_GCC_MAJOR_VERSION \ 8 | QMAKE_GCC_MINOR_VERSION \ 9 | QMAKE_GCC_PATCH_VERSION 10 | QMAKE_CXX.INCDIRS = \ 11 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++ \ 12 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/i686-w64-mingw32 \ 13 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/backward \ 14 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include \ 15 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include-fixed \ 16 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/include 17 | QMAKE_CXX.LIBDIRS = \ 18 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0 \ 19 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc \ 20 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/lib \ 21 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib 22 | -------------------------------------------------------------------------------- /ChartConfig/ChartConfig.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH +=$$PWD 2 | QT += core gui 3 | 4 | QT += charts 5 | 6 | 7 | SOURCES +=$$PWD/chartconfig.cpp \ 8 | $$PWD/qwdialogpen.cpp 9 | 10 | HEADERS += $$PWD/chartconfig.h \ 11 | $$PWD/qwdialogpen.h 12 | 13 | FORMS += $$PWD/chartconfig.ui\ 14 | $$PWD/qwdialogpen.ui 15 | 16 | RESOURCES +=$$PWD/res.qrc 17 | -------------------------------------------------------------------------------- /ChartConfig/ChartConfig.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-12-23T00:04:20 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | QT += charts 10 | 11 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 12 | 13 | TARGET = chartconfig 14 | TEMPLATE = app 15 | 16 | 17 | SOURCES += main.cpp\ 18 | chartconfig.cpp \ 19 | qwdialogpen.cpp 20 | 21 | HEADERS += chartconfig.h \ 22 | qwdialogpen.h 23 | 24 | FORMS += chartconfig.ui \ 25 | qwdialogpen.ui 26 | 27 | RESOURCES += \ 28 | res.qrc 29 | -------------------------------------------------------------------------------- /ChartConfig/chartconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | 6 | #include 7 | 8 | QT_CHARTS_USE_NAMESPACE 9 | 10 | namespace Ui { 11 | class ChartConfig; 12 | } 13 | 14 | class ChartConfig : public QMainWindow 15 | { 16 | Q_OBJECT 17 | 18 | private: 19 | QLineSeries *curSeries; //当前序列 20 | 21 | QValueAxis *curAxis; //当前坐标轴 22 | 23 | void createChart(); //创建图表 24 | void prepareData(); //更新数据 25 | void updateFromChart(); //从图表更新到界面 26 | 27 | public: 28 | explicit ChartConfig(QWidget *parent = 0); 29 | ~ChartConfig(); 30 | 31 | private slots: 32 | void on_LegendMarkerClicked(); //图例单击 33 | 34 | void on_actDraw_triggered(); 35 | 36 | void on_btnSetTitle_clicked(); 37 | 38 | void on_btnSetTitleFont_clicked(); 39 | 40 | void on_btnSetMargin_clicked(); 41 | 42 | void on_chkPointVisible_clicked(bool checked); 43 | 44 | void on_chkPointLabelVisible_clicked(bool checked); 45 | 46 | void on_btnSeriesName_clicked(); 47 | 48 | void on_btnSeriesColor_clicked(); 49 | 50 | void on_chkLegendVisible_clicked(bool checked); 51 | 52 | void on_btnSetAxisRange_clicked(); 53 | 54 | void on_spinTickCount_valueChanged(int arg1); 55 | 56 | void on_spinMinorTickCount_valueChanged(int arg1); 57 | 58 | void on_radioX_clicked(); 59 | 60 | void on_radioY_clicked(); 61 | 62 | void on_chkGridLineVisible_clicked(bool checked); 63 | 64 | void on_chkMinorTickVisible_clicked(bool checked); 65 | 66 | void on_chkBoxLegendBackground_clicked(bool checked); 67 | 68 | void on_radioButton_clicked(); 69 | 70 | void on_radioButton_2_clicked(); 71 | 72 | void on_radioButton_3_clicked(); 73 | 74 | void on_radioButton_4_clicked(); 75 | 76 | void on_btnLegendFont_clicked(); 77 | 78 | void on_btnLegendlabelColor_clicked(); 79 | 80 | void on_chkBoxVisible_clicked(bool checked); 81 | 82 | void on_btnAxisSetTitle_clicked(); 83 | 84 | void on_btnAxisSetTitleFont_clicked(); 85 | 86 | void on_chkBoxAxisTitle_clicked(bool checked); 87 | 88 | void on_pushButton_clicked(); 89 | 90 | void on_btnAxisLabelColor_clicked(); 91 | 92 | void on_btnAxisLabelFont_clicked(); 93 | 94 | void on_chkBoxLabelsVisible_clicked(bool checked); 95 | 96 | void on_btnGridLineColor_clicked(); 97 | 98 | void on_pushButton_10_clicked(); 99 | 100 | void on_chkAxisLineVisible_clicked(bool checked); 101 | 102 | void on_btnAxisLinePen_clicked(); 103 | 104 | void on_btnAxisLinePenColor_clicked(); 105 | 106 | void on_btnMinorColor_clicked(); 107 | 108 | void on_btnMinorPen_clicked(); 109 | 110 | void on_radioSeries0_clicked(); 111 | 112 | void on_radioSeries1_clicked(); 113 | 114 | void on_chkSeriesVisible_clicked(bool checked); 115 | 116 | void on_btnSeriesPen_clicked(); 117 | 118 | void on_sliderSeriesOpacity_valueChanged(int value); 119 | 120 | void on_btnSeriesLabColor_clicked(); 121 | 122 | void on_btnSeriesLabFont_clicked(); 123 | 124 | void on_radioSeriesLabFormat0_clicked(); 125 | 126 | void on_radioSeriesLabFormat1_clicked(); 127 | 128 | void on_cBoxAnimation_currentIndexChanged(int index); 129 | 130 | void on_cBoxTheme_currentIndexChanged(int index); 131 | 132 | void on_actZoomIn_triggered(); 133 | 134 | void on_actZoomOut_triggered(); 135 | 136 | void on_actZoomReset_triggered(); 137 | 138 | void on_toolBox_currentChanged(int index); 139 | 140 | private: 141 | Ui::ChartConfig *ui; 142 | public: 143 | QChart * pchart; 144 | }; 145 | 146 | #endif // MAINWINDOW_H 147 | -------------------------------------------------------------------------------- /ChartConfig/images/132.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/132.bmp -------------------------------------------------------------------------------- /ChartConfig/images/3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/3.ico -------------------------------------------------------------------------------- /ChartConfig/images/39.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/39.ico -------------------------------------------------------------------------------- /ChartConfig/images/414.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/414.bmp -------------------------------------------------------------------------------- /ChartConfig/images/416.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/416.bmp -------------------------------------------------------------------------------- /ChartConfig/images/418.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/418.bmp -------------------------------------------------------------------------------- /ChartConfig/images/43.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/43.ico -------------------------------------------------------------------------------- /ChartConfig/images/828.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/828.bmp -------------------------------------------------------------------------------- /ChartConfig/images/dis3.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/dis3.ico -------------------------------------------------------------------------------- /ChartConfig/images/f14.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/ChartConfig/images/f14.ico -------------------------------------------------------------------------------- /ChartConfig/main.cpp: -------------------------------------------------------------------------------- 1 | #include "chartconfig.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | ChartConfig w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /ChartConfig/qwdialogpen.cpp: -------------------------------------------------------------------------------- 1 | #include "qwdialogpen.h" 2 | #include "ui_qwdialogpen.h" 3 | 4 | #include 5 | 6 | // 若MSVC 编译版本错误,修改 msvc-version.conf 文件 7 | // 解决MSVC编译时,界面汉字乱码的问题 8 | #if _MSC_VER >= 1600 //MSVC2015>1899, MSVC_VER= 14.0 9 | #pragma execution_character_set("utf-8") 10 | #endif 11 | 12 | 13 | QWDialogPen::QWDialogPen(QWidget *parent) : 14 | QDialog(parent), 15 | ui(new Ui::QWDialogPen) 16 | { 17 | ui->setupUi(this); 18 | 19 | //“线型”ComboBox的选择项设置 20 | ui->comboPenStyle->clear(); 21 | ui->comboPenStyle->addItem("NoPen",0); 22 | ui->comboPenStyle->addItem("SolidLine",1); 23 | ui->comboPenStyle->addItem("DashLine",2); 24 | ui->comboPenStyle->addItem("DotLine",3); 25 | ui->comboPenStyle->addItem("DashDotLine",4); 26 | ui->comboPenStyle->addItem("DashDotDotLine",5); 27 | ui->comboPenStyle->addItem("CustomDashLine",6); 28 | 29 | ui->comboPenStyle->setCurrentIndex(1); 30 | } 31 | 32 | QWDialogPen::~QWDialogPen() 33 | { 34 | delete ui; 35 | } 36 | 37 | void QWDialogPen::setPen(QPen pen) 38 | { //设置QPen,并刷新显示界面 39 | m_pen=pen; 40 | 41 | ui->spinWidth->setValue(pen.width()); //线宽 42 | int i=static_cast(pen.style()); //枚举类型转换为整型 43 | ui->comboPenStyle->setCurrentIndex(i); 44 | 45 | QColor color=pen.color(); 46 | ui->btnColor->setAutoFillBackground(true); //设置颜色按钮的背景色 47 | QString str=QString::asprintf("background-color: rgb(%d, %d, %d);", 48 | color.red(),color.green(),color.blue()); 49 | ui->btnColor->setStyleSheet(str); 50 | } 51 | 52 | QPen QWDialogPen::getPen() 53 | {//获得设置的属性 54 | m_pen.setStyle(Qt::PenStyle(ui->comboPenStyle->currentIndex())); //线型 55 | m_pen.setWidth(ui->spinWidth->value()); //线宽 56 | 57 | QColor color; 58 | color=ui->btnColor->palette().color(QPalette::Button); 59 | m_pen.setColor(color); //颜色 60 | return m_pen; 61 | } 62 | 63 | QPen QWDialogPen::getPen(QPen iniPen,bool &ok) 64 | { //静态函数,获取QPen 65 | QWDialogPen *Dlg=new QWDialogPen; //创建一个对话框 66 | Dlg->setPen(iniPen); //设置初始化QPen 67 | 68 | QPen pen; 69 | int ret=Dlg->exec(); //弹出对话框 70 | if (ret==QDialog::Accepted) 71 | { 72 | pen=Dlg->getPen(); //获取 73 | ok=true; } 74 | else 75 | { 76 | pen=iniPen; 77 | ok=false; } 78 | 79 | delete Dlg; //删除对话框对象 80 | return pen; //返回设置的QPen对象 81 | } 82 | 83 | void QWDialogPen::on_btnColor_clicked() 84 | {//设置颜色 85 | QColor color=QColorDialog::getColor(); 86 | if (color.isValid()) 87 | { //用样式表设置QPushButton的背景色 88 | QString str=QString::asprintf("background-color: rgb(%d, %d, %d);", 89 | color.red(),color.green(),color.blue()); 90 | ui->btnColor->setStyleSheet(str); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /ChartConfig/qwdialogpen.h: -------------------------------------------------------------------------------- 1 | #ifndef UI_SETQWDIALOGPEN_H 2 | #define UI_SETQWDIALOGPEN_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Ui { 8 | class QWDialogPen; 9 | } 10 | 11 | class QWDialogPen : public QDialog 12 | { //QPen属性设置对话框 13 | Q_OBJECT 14 | private: 15 | QPen m_pen; //成员变量 16 | public: 17 | explicit QWDialogPen(QWidget *parent = 0); 18 | ~QWDialogPen(); 19 | 20 | void setPen(QPen pen); //设置QPen,用于对话框的界面显示 21 | QPen getPen(); //获取对话框设置的QPen的属性 22 | static QPen getPen(QPen iniPen, bool &ok); //静态函数 23 | 24 | private slots: 25 | void on_btnColor_clicked(); 26 | private: 27 | Ui::QWDialogPen *ui; 28 | }; 29 | 30 | #endif // QWDIALOGPEN_H 31 | -------------------------------------------------------------------------------- /ChartConfig/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/132.bmp 4 | images/828.bmp 5 | images/dis3.ico 6 | images/39.ico 7 | images/3.ico 8 | images/f14.ico 9 | images/414.bmp 10 | images/416.bmp 11 | images/418.bmp 12 | 13 | 14 | -------------------------------------------------------------------------------- /DllRead/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /DllRead/.idea/DllRead.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DllRead/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | -------------------------------------------------------------------------------- /DllRead/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /DllRead/.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.QT_COMPILER_STDCXX = 201402L 2 | QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7 3 | QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3 4 | QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0 5 | QMAKE_CXX.COMPILER_MACROS = \ 6 | QT_COMPILER_STDCXX \ 7 | QMAKE_GCC_MAJOR_VERSION \ 8 | QMAKE_GCC_MINOR_VERSION \ 9 | QMAKE_GCC_PATCH_VERSION 10 | QMAKE_CXX.INCDIRS = \ 11 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++ \ 12 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/i686-w64-mingw32 \ 13 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/backward \ 14 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include \ 15 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include-fixed \ 16 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/include 17 | QMAKE_CXX.LIBDIRS = \ 18 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0 \ 19 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc \ 20 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/lib \ 21 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib 22 | -------------------------------------------------------------------------------- /DllRead/DllRead.pro: -------------------------------------------------------------------------------- 1 | QT += core gui 2 | 3 | 4 | QT += charts 5 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 6 | 7 | CONFIG += c++11 8 | 9 | 10 | DEFINES += QT_DEPRECATED_WARNINGS 11 | 12 | 13 | 14 | SOURCES += main.cpp \ 15 | dllread.cpp 16 | 17 | HEADERS += USBDAQ8API.h\ 18 | dllread.h\ 19 | 20 | FORMS += dllread.ui 21 | 22 | 23 | 24 | # Default rules for deployment. 25 | qnx: target.path = /tmp/$${TARGET}/bin 26 | else: unix:!android: target.path = /opt/$${TARGET}/bin 27 | !isEmpty(target.path): INSTALLS += target 28 | 29 | 30 | 31 | unix|win32: LIBS += -L$$PWD/./ -lUSBDAQ8 32 | 33 | INCLUDEPATH += $$PWD/. 34 | DEPENDPATH += $$PWD/. 35 | 36 | include(../qcustomcontrols/progressbar/QtRoundProgressBar.pri) 37 | include(../simulinkwave/simulinkwave.pri) 38 | include(../ChartConfig/ChartConfig.pri) 39 | include(../qcustomcontrols/gauge/gauge.pri) 40 | -------------------------------------------------------------------------------- /DllRead/USBDAQ8API.h: -------------------------------------------------------------------------------- 1 | #pragma comment(lib,"USBDAQ8.lib") 2 | 3 | #define UINT unsigned int 4 | #define USHORT unsigned short 5 | #define UCHAR unsigned char 6 | #define INT int 7 | 8 | typedef void *HANDLE; 9 | 10 | extern "C" __declspec(dllimport) HANDLE USB8CHDAQ_INIT(void); 11 | 12 | extern "C" __declspec(dllimport) void USB8CHDAQ_QUIT(HANDLE DevHandle); 13 | 14 | extern "C" __declspec(dllimport) INT USB8CHDAQ_DAQ(HANDLE DevHandle,UINT Channel, UINT Frequency, USHORT Length); 15 | 16 | extern "C" __declspec(dllimport) INT USB8CHDAQ_ReadData_Continue(HANDLE DevHandle,INT Len,UCHAR *pData); 17 | 18 | extern "C" __declspec(dllimport) INT USB8CHDAQ_ReadData_1FPS(HANDLE DevHandle,INT ChannelNumber,INT len,UCHAR *pData); 19 | 20 | extern "C" __declspec(dllimport) INT USB8CHDAQ_DI(HANDLE DevHandle,INT enable); 21 | 22 | extern "C" __declspec(dllimport) INT USB8CHDAQ_DO(HANDLE DevHandle,INT low,INT high); 23 | 24 | extern "C" __declspec(dllimport) INT USB8CHDAQ_ReadDIData(HANDLE DevHandle,UCHAR *highData,UCHAR *lowData); 25 | 26 | extern "C" __declspec(dllimport) INT USB8CHDAQ_DAC(HANDLE DevHandle,UINT Ch0,UINT Ch1,UCHAR mode); 27 | 28 | extern "C" __declspec(dllimport) void USB8CHDAQ_Convert(UCHAR *pOrg,double *rData,INT Len,INT ChannelCount); -------------------------------------------------------------------------------- /DllRead/dllread.h: -------------------------------------------------------------------------------- 1 | #ifndef DLLREAD_H 2 | #define DLLREAD_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include "wave.h" // Model's header file 9 | #include "rtwtypes.h" 10 | #include 11 | #include 12 | using namespace std; 13 | 14 | QT_BEGIN_NAMESPACE 15 | namespace Ui { class DllRead; } 16 | 17 | QT_END_NAMESPACE 18 | 19 | /*重写方法,没必要加入类的成员方法*/ 20 | int USBDAQ8_INIT(); //原方法 USB8CHDAQ_INIT 21 | int USBDAQ8_DAQ(int handle,int channel,int fre,int len); 22 | void USBDAQ8_QUIT(int handle); 23 | QVector USBDAQ8_ReadData_Continue(int handle,int len,int channel); 24 | /*---自定义函数----*/ 25 | double *generateRandomArray(int n, int rangeL, int rangeR); 26 | 27 | class DllRead : public QMainWindow 28 | { 29 | Q_OBJECT 30 | 31 | public: 32 | DllRead(QWidget *parent = nullptr); 33 | ~DllRead(); 34 | void on_PlotChart_clicked(QVector ,int anum); 35 | public: 36 | QChart *chart ; 37 | QChart *speedchart; 38 | QLineSeries *series0; 39 | QSplineSeries *series1; 40 | waveModelClass wave_Obj; 41 | void wavert_OneStep(void);//用于波形的步进 42 | 43 | private slots: 44 | void on_TestButton_clicked(); 45 | 46 | void on_StartAcquire_clicked(); 47 | void on_timer_timeout(); 48 | 49 | void on_StopAcquire_clicked(); 50 | 51 | void on_timetest_clicked(); 52 | void on_waveconfig_triggered(); 53 | 54 | void on_speedconfig_triggered(); 55 | 56 | void on_lower_editingFinished(); 57 | 58 | void on_upper_editingFinished(); 59 | void setfreqValue(); 60 | void setampValue(); 61 | 62 | void on_freq_editingFinished(); 63 | 64 | void on_freqn_editingFinished(); 65 | 66 | void on_cardset_clicked(); 67 | 68 | void on_cardquit_clicked(); 69 | 70 | void on_convert_clicked(); 71 | 72 | private: 73 | Ui::DllRead *ui; 74 | void ChartInit(); 75 | void ActionInit(); 76 | void SpeedpanelInit(); 77 | bool LogInit(); 78 | private: 79 | QTimer *SignalTimer; //创建定时器; //定时器 80 | int handle;// int 型的句柄值 81 | int fn; //采样数和采样频率 82 | int freq; 83 | float dt ; //dt=1/freq 84 | qreal timeperiod; //周期fn*dt 85 | int virtualamp; 86 | int virtualfreq; 87 | QValueAxis *axisX; 88 | QValueAxis *axisX1; 89 | qreal rsum; //总转了多少圈 90 | QVector data; 91 | bool PhysicsIsGood; 92 | bool cardflag; //表示采集卡状态 93 | public: 94 | float actualspped; 95 | private: //dll 的类型转换 96 | typedef void *HANDLE; 97 | signals: 98 | void SpeedUpdate(float); 99 | 100 | }; 101 | #endif // DLLREAD_H 102 | -------------------------------------------------------------------------------- /DllRead/dllreadread.pri: -------------------------------------------------------------------------------- 1 | QT += core gui 2 | QT += charts 3 | 4 | 5 | INCLUDEPATH += $$PWD 6 | SOURCES += \ 7 | $$PWD/dllread.cpp 8 | 9 | HEADERS +=$$PWD/USBDAQ8API.h \ 10 | $$PWD/dllread.h 11 | 12 | FORMS +=$$PWD/dllread.ui 13 | 14 | # Default rules for deployment. 15 | qnx: target.path = /tmp/$${TARGET}/bin 16 | else: unix:!android: target.path = /opt/$${TARGET}/bin 17 | !isEmpty(target.path): INSTALLS += target 18 | 19 | 20 | 21 | unix|win32: LIBS += -L$$PWD/./ -lUSBDAQ8 22 | 23 | INCLUDEPATH += $$PWD/. 24 | DEPENDPATH += $$PWD/. 25 | 26 | 27 | include(../qcustomcontrols/progressbar/QtRoundProgressBar.pri) 28 | include(../simulinkwave/simulinkwave.pri) 29 | include(../ChartConfig/ChartConfig.pri) 30 | -------------------------------------------------------------------------------- /DllRead/main.cpp: -------------------------------------------------------------------------------- 1 | #include "dllread.h" 2 | 3 | #include 4 | #include"USBDAQ8API.h" 5 | #include 6 | 7 | 8 | int main(int argc, char *argv[]) 9 | { 10 | 11 | QApplication a(argc, argv); 12 | DllRead w; 13 | w.show(); 14 | 15 | 16 | return a.exec(); 17 | } 18 | -------------------------------------------------------------------------------- /DllRead/object_script.DllRead.Debug: -------------------------------------------------------------------------------- 1 | debug/main.o 2 | debug/dllread.o 3 | debug/QtRoundProgressBar.o 4 | debug/wave.o 5 | debug/chartconfig.o 6 | debug/qwdialogpen.o 7 | debug/QtGaugeProgress.o 8 | debug/qrc_res.o 9 | debug/moc_dllread.o 10 | debug/moc_QtRoundProgressBar.o 11 | debug/moc_chartconfig.o 12 | debug/moc_qwdialogpen.o 13 | debug/moc_QtGaugeProgress.o 14 | -------------------------------------------------------------------------------- /DllRead/object_script.DllRead.Release: -------------------------------------------------------------------------------- 1 | release/main.o 2 | release/dllread.o 3 | release/QtRoundProgressBar.o 4 | release/wave.o 5 | release/chartconfig.o 6 | release/qwdialogpen.o 7 | release/QtGaugeProgress.o 8 | release/qrc_res.o 9 | release/moc_dllread.o 10 | release/moc_QtRoundProgressBar.o 11 | release/moc_chartconfig.o 12 | release/moc_qwdialogpen.o 13 | release/moc_QtGaugeProgress.o 14 | -------------------------------------------------------------------------------- /DllRead/object_script.chartconfig.Debug: -------------------------------------------------------------------------------- 1 | debug/main.o 2 | debug/dllread.o 3 | debug/QtRoundProgressBar.o 4 | debug/QtColorProgressBar.o 5 | debug/QtStateProgressBar.o 6 | debug/QtWaitProgressBar.o 7 | debug/QtZoomCircleWait.o 8 | debug/QtGaugeProgress.o 9 | debug/QtNavButton.o 10 | debug/QtNavListView.o 11 | debug/QtNavTreeView.o 12 | debug/CstmSpeedPanel.o 13 | debug/chartconfig.o 14 | debug/qwdialogpen.o 15 | debug/qrc_res.o 16 | debug/moc_dllread.o 17 | debug/moc_QtRoundProgressBar.o 18 | debug/moc_QtColorProgressBar.o 19 | debug/moc_QtStateProgressBar.o 20 | debug/moc_QtWaitProgressBar.o 21 | debug/moc_QtZoomCircleWait.o 22 | debug/moc_QtGaugeProgress.o 23 | debug/moc_QtNavButton.o 24 | debug/moc_QtNavListView.o 25 | debug/moc_QtNavTreeView.o 26 | debug/moc_CstmSpeedPanel.o 27 | debug/moc_qwdialogpen.o 28 | -------------------------------------------------------------------------------- /DllRead/object_script.chartconfig.Release: -------------------------------------------------------------------------------- 1 | release/main.o 2 | release/dllread.o 3 | release/QtRoundProgressBar.o 4 | release/QtColorProgressBar.o 5 | release/QtStateProgressBar.o 6 | release/QtWaitProgressBar.o 7 | release/QtZoomCircleWait.o 8 | release/QtGaugeProgress.o 9 | release/QtNavButton.o 10 | release/QtNavListView.o 11 | release/QtNavTreeView.o 12 | release/CstmSpeedPanel.o 13 | release/chartconfig.o 14 | release/qwdialogpen.o 15 | release/qrc_res.o 16 | release/moc_dllread.o 17 | release/moc_QtRoundProgressBar.o 18 | release/moc_QtColorProgressBar.o 19 | release/moc_QtStateProgressBar.o 20 | release/moc_QtWaitProgressBar.o 21 | release/moc_QtZoomCircleWait.o 22 | release/moc_QtGaugeProgress.o 23 | release/moc_QtNavButton.o 24 | release/moc_QtNavListView.o 25 | release/moc_QtNavTreeView.o 26 | release/moc_CstmSpeedPanel.o 27 | release/moc_qwdialogpen.o 28 | -------------------------------------------------------------------------------- /DllRead/直接解压到当前文件夹.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/DllRead/直接解压到当前文件夹.rar -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/demo.png -------------------------------------------------------------------------------- /gause/.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.QT_COMPILER_STDCXX = 201402L 2 | QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7 3 | QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3 4 | QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0 5 | QMAKE_CXX.COMPILER_MACROS = \ 6 | QT_COMPILER_STDCXX \ 7 | QMAKE_GCC_MAJOR_VERSION \ 8 | QMAKE_GCC_MINOR_VERSION \ 9 | QMAKE_GCC_PATCH_VERSION 10 | QMAKE_CXX.INCDIRS = \ 11 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++ \ 12 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/i686-w64-mingw32 \ 13 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/backward \ 14 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include \ 15 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include-fixed \ 16 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/include 17 | QMAKE_CXX.LIBDIRS = \ 18 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0 \ 19 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc \ 20 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/lib \ 21 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib 22 | -------------------------------------------------------------------------------- /gause/gause.cpp: -------------------------------------------------------------------------------- 1 | #include "gause.h" 2 | #include "ui_gause.h" 3 | #include 4 | 5 | Gause::Gause(QWidget *parent) 6 | : QMainWindow(parent) 7 | , ui(new Ui::Gause) 8 | { 9 | ui->setupUi(this); 10 | connect(ui->gauge,SIGNAL(customsignal()), this, SLOT(customslot())); 11 | 12 | } 13 | void Gause::customslot() 14 | { 15 | // qDebug()<<"我被执行"; 16 | qDebug()<gauge->Value(); 17 | } 18 | void Gause::valueChanged(int value) 19 | { 20 | qDebug()< 5 | 6 | QT_BEGIN_NAMESPACE 7 | namespace Ui { class Gause; } 8 | QT_END_NAMESPACE 9 | 10 | class Gause : public QMainWindow 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | Gause(QWidget *parent = nullptr); 16 | ~Gause(); 17 | 18 | private: 19 | Ui::Gause *ui; 20 | private slots: 21 | void customslot(); 22 | void valueChanged(int ); 23 | }; 24 | #endif // GAUSE_H 25 | -------------------------------------------------------------------------------- /gause/gause.pro: -------------------------------------------------------------------------------- 1 | QT += core gui 2 | 3 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 | 5 | CONFIG += c++11 6 | 7 | # The following define makes your compiler emit warnings if you use 8 | # any Qt feature that has been marked deprecated (the exact warnings 9 | # depend on your compiler). Please consult the documentation of the 10 | # deprecated API in order to know how to port your code away from it. 11 | DEFINES += QT_DEPRECATED_WARNINGS 12 | 13 | # You can also make your code fail to compile if it uses deprecated APIs. 14 | # In order to do so, uncomment the following line. 15 | # You can also select to disable deprecated APIs only up to a certain version of Qt. 16 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 17 | 18 | SOURCES += \ 19 | main.cpp \ 20 | gause.cpp 21 | 22 | HEADERS += \ 23 | gause.h 24 | 25 | FORMS += \ 26 | gause.ui 27 | 28 | # Default rules for deployment. 29 | qnx: target.path = /tmp/$${TARGET}/bin 30 | else: unix:!android: target.path = /opt/$${TARGET}/bin 31 | !isEmpty(target.path): INSTALLS += target 32 | include(F:\WorkStation\QT_In_Github\qribbonStudy\qcustomcontrols\gauge\gauge.pri) 33 | -------------------------------------------------------------------------------- /gause/gause.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Gause 4 | 5 | 6 | 7 | 0 8 | 0 9 | 430 10 | 608 11 | 12 | 13 | 14 | Gause 15 | 16 | 17 | 18 | 19 | 20 | 40 21 | 240 22 | 341 23 | 241 24 | 25 | 26 | 27 | 28 | 29 | 30 | 70 31 | 110 32 | 231 33 | 51 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 0 42 | 0 43 | 430 44 | 26 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | QtGaugeProgress 53 | QWidget 54 |
QtGaugeProgress.h
55 | 1 56 |
57 |
58 | 59 | 60 | 61 | spinBox 62 | valueChanged(int) 63 | Gause 64 | valueChanged(int) 65 | 66 | 67 | 153 68 | 165 69 | 70 | 71 | 378 72 | 112 73 | 74 | 75 | 76 | 77 | 78 | valueChanged(int) 79 | 80 |
81 | -------------------------------------------------------------------------------- /gause/main.cpp: -------------------------------------------------------------------------------- 1 | #include "gause.h" 2 | 3 | #include 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | Gause w; 9 | w.show(); 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /gause/ui_gause.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'gause.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.14.2 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_GAUSE_H 10 | #define UI_GAUSE_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include "QtGaugeProgress.h" 20 | 21 | QT_BEGIN_NAMESPACE 22 | 23 | class Ui_Gause 24 | { 25 | public: 26 | QWidget *centralwidget; 27 | QtGaugeProgress *gauge; 28 | QSpinBox *spinBox; 29 | QMenuBar *menubar; 30 | QStatusBar *statusbar; 31 | 32 | void setupUi(QMainWindow *Gause) 33 | { 34 | if (Gause->objectName().isEmpty()) 35 | Gause->setObjectName(QString::fromUtf8("Gause")); 36 | Gause->resize(430, 608); 37 | centralwidget = new QWidget(Gause); 38 | centralwidget->setObjectName(QString::fromUtf8("centralwidget")); 39 | gauge = new QtGaugeProgress(centralwidget); 40 | gauge->setObjectName(QString::fromUtf8("gauge")); 41 | gauge->setGeometry(QRect(40, 240, 341, 241)); 42 | spinBox = new QSpinBox(centralwidget); 43 | spinBox->setObjectName(QString::fromUtf8("spinBox")); 44 | spinBox->setGeometry(QRect(70, 110, 231, 51)); 45 | Gause->setCentralWidget(centralwidget); 46 | menubar = new QMenuBar(Gause); 47 | menubar->setObjectName(QString::fromUtf8("menubar")); 48 | menubar->setGeometry(QRect(0, 0, 430, 26)); 49 | Gause->setMenuBar(menubar); 50 | statusbar = new QStatusBar(Gause); 51 | statusbar->setObjectName(QString::fromUtf8("statusbar")); 52 | Gause->setStatusBar(statusbar); 53 | 54 | retranslateUi(Gause); 55 | QObject::connect(spinBox, SIGNAL(valueChanged(int)), Gause, SLOT(valueChanged(int))); 56 | 57 | QMetaObject::connectSlotsByName(Gause); 58 | } // setupUi 59 | 60 | void retranslateUi(QMainWindow *Gause) 61 | { 62 | Gause->setWindowTitle(QCoreApplication::translate("Gause", "Gause", nullptr)); 63 | } // retranslateUi 64 | 65 | }; 66 | 67 | namespace Ui { 68 | class Gause: public Ui_Gause {}; 69 | } // namespace Ui 70 | 71 | QT_END_NAMESPACE 72 | 73 | #endif // UI_GAUSE_H 74 | -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/CstmSpeedPanel.h: -------------------------------------------------------------------------------- 1 | #ifndef CSTMSPEEDPANEL_H 2 | #define CSTMSPEEDPANEL_H 3 | 4 | /* 5 | This widget was created by flist ( https://github.com/flistliu ) 6 | 7 | */ 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | class CstmSpeedPanel : public QWidget 16 | { 17 | Q_OBJECT 18 | 19 | public: 20 | CstmSpeedPanel(QWidget *parent = 0); 21 | ~CstmSpeedPanel(); 22 | void SpeedPanelInit(int minspeed,int maxSpeed); 23 | 24 | protected: 25 | void paintEvent(QPaintEvent* event); 26 | 27 | public slots: 28 | void setCurentSpeed(int speed); 29 | 30 | private: 31 | void drawFrame(QPainter& painter);//绘制边框与背景 32 | void drawNumberIndicator(QPainter& painter);//绘制指示数字 33 | void drawDividing(QPainter& painter);//绘制刻度 34 | void drawNumberSpeed(QPainter &painter);//显示数字速度 35 | void drawIndicator(QPainter& painter);//绘制速度指针 36 | 37 | public: 38 | int m_startAngle; 39 | int m_endAngle; 40 | 41 | int m_refSize; //绘制的参考大小 42 | int m_radius; 43 | 44 | int m_minSpeed; 45 | int m_maxSpeed; 46 | int m_curSpeed; 47 | int space; //自定义的显示数字间隔 为总数除以10 48 | double m_anglePerVel;//每KM 对应的 角度 49 | 50 | QLCDNumber *m_lcd_Mileage;//显示总里程 51 | QLabel *m_lbl_Mileage; 52 | QHBoxLayout* m_layout_mileage; 53 | QWidget* m_wgt_mileage; 54 | }; 55 | 56 | #endif // CSTMSPEEDPANEL_H 57 | -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/CstmSpeedPanel.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | HEADERS += \ 4 | $$PWD/CstmSpeedPanel.h 5 | 6 | SOURCES += \ 7 | $$PWD/CstmSpeedPanel.cpp -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/CstmSpeedPanel/CstmSpeedPanel.pro: -------------------------------------------------------------------------------- 1 | QT += core gui 2 | 3 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 | 5 | CONFIG += c++11 6 | 7 | # The following define makes your compiler emit warnings if you use 8 | # any Qt feature that has been marked deprecated (the exact warnings 9 | # depend on your compiler). Please consult the documentation of the 10 | # deprecated API in order to know how to port your code away from it. 11 | DEFINES += QT_DEPRECATED_WARNINGS 12 | 13 | # You can also make your code fail to compile if it uses deprecated APIs. 14 | # In order to do so, uncomment the following line. 15 | # You can also select to disable deprecated APIs only up to a certain version of Qt. 16 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 17 | 18 | SOURCES += \ 19 | main.cpp \ 20 | speedpanel.cpp 21 | 22 | HEADERS += \ 23 | speedpanel.h 24 | 25 | FORMS += \ 26 | speedpanel.ui 27 | 28 | # Default rules for deployment. 29 | qnx: target.path = /tmp/$${TARGET}/bin 30 | else: unix:!android: target.path = /opt/$${TARGET}/bin 31 | !isEmpty(target.path): INSTALLS += target 32 | include(F:\WorkStation\QT_In_Github\qribbonStudy\qcustomcontrols\CstmSpeedPanel\CstmSpeedPanel.pri) 33 | -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/CstmSpeedPanel/main.cpp: -------------------------------------------------------------------------------- 1 | #include "speedpanel.h" 2 | 3 | #include 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | SpeedPanel w; 9 | w.show(); 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/CstmSpeedPanel/speedpanel.cpp: -------------------------------------------------------------------------------- 1 | #include "speedpanel.h" 2 | #include "ui_speedpanel.h" 3 | #include"CstmSpeedPanel.h" 4 | 5 | SpeedPanel::SpeedPanel(QWidget *parent) 6 | : QMainWindow(parent) 7 | , ui(new Ui::SpeedPanel) 8 | { 9 | ui->setupUi(this); 10 | CstmSpeedPanel * sp=new CstmSpeedPanel(this); 11 | sp->show(); 12 | sp->repaint(); 13 | 14 | } 15 | 16 | SpeedPanel::~SpeedPanel() 17 | { 18 | delete ui; 19 | } 20 | 21 | -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/CstmSpeedPanel/speedpanel.h: -------------------------------------------------------------------------------- 1 | #ifndef SPEEDPANEL_H 2 | #define SPEEDPANEL_H 3 | 4 | #include 5 | 6 | QT_BEGIN_NAMESPACE 7 | namespace Ui { class SpeedPanel; } 8 | QT_END_NAMESPACE 9 | 10 | class SpeedPanel : public QMainWindow 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | SpeedPanel(QWidget *parent = nullptr); 16 | ~SpeedPanel(); 17 | 18 | private: 19 | Ui::SpeedPanel *ui; 20 | }; 21 | #endif // SPEEDPANEL_H 22 | -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/CstmSpeedPanel/speedpanel.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | SpeedPanel 4 | 5 | 6 | 7 | 0 8 | 0 9 | 513 10 | 578 11 | 12 | 13 | 14 | SpeedPanel 15 | 16 | 17 | 18 | 19 | 20 | 20 21 | 470 22 | 351 23 | 51 24 | 25 | 26 | 27 | 28 | 12 29 | 30 | 31 | 32 | 此窗口为了调试速度面板的参数: 33 | 34 | 35 | 36 | 37 | 38 | 39 | 0 40 | 0 41 | 513 42 | 26 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /qcustomcontrols/CstmSpeedPanel/README.md: -------------------------------------------------------------------------------- 1 | # CstmSpeedPanel 2 | 3 | ![CstmSpeedPanel](../IMAGE/CstmSpeedPanel.png) 4 | 5 |

CstmSpeedPanel is a widget provide a speed panel,like a spped panel of a car 6 | 7 |

This widget was created by flist (https://github.com/flistliu ) 8 | 9 |

If you want to change the size of widget , or other configurations , you can changed the value in the Constructor. It is different from other controls. 10 | 11 |

This widget only provide a slot to change the value of the spped, so you can use the function to change. 12 | 13 | void setCurentSpeed(int speed); 14 | -------------------------------------------------------------------------------- /qcustomcontrols/button/button.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | HEADERS += \ 4 | $$PWD/QtNavButton.h 5 | 6 | SOURCES += \ 7 | $$PWD/QtNavButton.cpp 8 | -------------------------------------------------------------------------------- /qcustomcontrols/gauge/QtGaugeProgress.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | ** 3 | ** Copyright (C) 2019 MaMinJie 4 | ** Contact: https://github.com/canpool 5 | ** Reference: http://www.qtcn.org 6 | ** 7 | ** This program is free software: you can redistribute it and/or modify 8 | ** it under the terms of the GNU General Public License as published by 9 | ** the Free Software Foundation, either version 3 of the License, or 10 | ** (at your option) any later version. 11 | ** 12 | ** This program is distributed in the hope that it will be useful, 13 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ** GNU General Public License for more details. 16 | ** 17 | ** You should have received a copy of the GNU General Public License 18 | ** along with this program. If not, see http://www.gnu.org/licenses/. 19 | ** 20 | ****************************************************************************/ 21 | #ifndef QTGAUGEPROGRESS_H 22 | #define QTGAUGEPROGRESS_H 23 | 24 | #include 25 | 26 | class QPropertyAnimation; 27 | 28 | class QtGaugeProgress : public QWidget 29 | { 30 | Q_OBJECT 31 | public: 32 | enum PointerStyle { 33 | Circle, 34 | Indicator, 35 | IndicatorR, 36 | Triangle 37 | }; 38 | 39 | explicit QtGaugeProgress(QWidget *parent = nullptr); 40 | 41 | void setStartAngle(int angle); 42 | void setEndAngle(int angle); 43 | 44 | void setBackColor(const QColor &color); 45 | void setProgressColor(const QColor &color); 46 | void setProgressBackColor(const QColor &color); 47 | void setTextColor(const QColor &color); 48 | void setInnerDataColors(const QGradientStops &stopPoints); 49 | 50 | void setDecimals(int count); 51 | 52 | void setShowPointer(bool show); 53 | void setShowValue(bool show); 54 | 55 | void setPointerStyle(PointerStyle style); 56 | 57 | Q_SIGNALS: 58 | void valueChanged(int value); 59 | void customsignal(); 60 | 61 | public slots: 62 | void setRange(double min, double max); 63 | void setMinimum(double min); 64 | void setMaximum(double max); 65 | void setValue(double value); 66 | void setValue(int value); 67 | 68 | protected: 69 | void enterEvent(QEvent *e); 70 | void leaveEvent(QEvent *e); 71 | void mousePressEvent(QMouseEvent *e); 72 | void mouseReleaseEvent(QMouseEvent *e); 73 | void mouseMoveEvent(QMouseEvent *e); 74 | void paintEvent(QPaintEvent *); 75 | 76 | private: 77 | void drawBackground(QPainter &p); 78 | void drawProgress(QPainter &p); 79 | void drawCoverCircle(QPainter &p); 80 | void drawInnerCircle(QPainter &p); 81 | void drawPointerCircle(QPainter &p); 82 | void drawPointerIndicator(QPainter &p); 83 | void drawPointerIndicatorR(QPainter &p); 84 | void drawPointerTriangle(QPainter &p); 85 | void drawValue(QPainter &p); 86 | 87 | void setPressedValue(QPointF pressedPoint); 88 | 89 | private slots: 90 | void updateRadius(const QVariant &radius); 91 | public: 92 | int Value(); 93 | 94 | private: 95 | // double curValue; //把当前的值作为属性 96 | double m_min, m_max, m_value; 97 | int m_decimals; 98 | 99 | int m_startAngle; // start rotation angle (/|) 100 | int m_endAngle; // end rotation angle (|\) 101 | 102 | QColor m_backColor; 103 | QColor m_progressColor; 104 | QColor m_progressBackColor; 105 | QColor m_textColor; 106 | 107 | bool m_bShowPointer; 108 | bool m_bShowValue; 109 | PointerStyle m_pointerStyle; 110 | 111 | bool m_bMouseHover; 112 | bool m_bMousePress; 113 | 114 | int m_coverRadius; 115 | int m_innerRadius; 116 | QGradientStops m_innerGradientData; 117 | 118 | QPropertyAnimation *m_pAnimation; 119 | 120 | }; 121 | 122 | #endif // QTGAUGEPROGRESS_H 123 | -------------------------------------------------------------------------------- /qcustomcontrols/gauge/gauge.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | HEADERS += \ 4 | $$PWD/QtGaugeProgress.h 5 | 6 | SOURCES += \ 7 | $$PWD/QtGaugeProgress.cpp 8 | -------------------------------------------------------------------------------- /qcustomcontrols/progressbar/QtColorProgressBar.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | ** 3 | ** Copyright (C) 2019 MaMinJie 4 | ** Contact: https://github.com/canpool 5 | ** 6 | ** This program is free software: you can redistribute it and/or modify 7 | ** it under the terms of the GNU General Public License as published by 8 | ** the Free Software Foundation, either version 3 of the License, or 9 | ** (at your option) any later version. 10 | ** 11 | ** This program is distributed in the hope that it will be useful, 12 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | ** GNU General Public License for more details. 15 | ** 16 | ** You should have received a copy of the GNU General Public License 17 | ** along with this program. If not, see http://www.gnu.org/licenses/. 18 | ** 19 | ****************************************************************************/ 20 | #ifndef QTCOLORPROGRESSBAR_H 21 | #define QTCOLORPROGRESSBAR_H 22 | 23 | #include 24 | 25 | class QtColorProgressBar : public QWidget 26 | { 27 | Q_OBJECT 28 | public: 29 | enum TextPosition { 30 | TextInBar, 31 | TextOnBar, 32 | TextOutBar 33 | }; 34 | 35 | enum BarStyle { 36 | StyleSolid, 37 | StyleGradual, 38 | StyleSegmented 39 | }; 40 | 41 | // use for StyleSegmented 42 | struct BarStep { 43 | BarStep() : size(2), delta(0), space(5) {} 44 | int size; // the size of step 45 | int delta; // the x-delta of step 46 | int space; // The space/gap between each step 47 | }; 48 | 49 | explicit QtColorProgressBar(BarStyle style = StyleSolid, QWidget *parent = nullptr); 50 | 51 | void setTextForeColor(const QColor &color); 52 | void setTextBackColor(const QColor &color); 53 | 54 | void setBarForeColor(const QColor &color); 55 | void setBarForeAlternateColor(const QColor &color); 56 | void setBarBackColor(const QColor &color); 57 | 58 | void setBarForeDataColors(const QGradientStops &stopPoints); 59 | 60 | void setBarStep(int space, int delta, int size = 2); 61 | 62 | void setDecimals(int count); 63 | void setRadius(int radius); 64 | 65 | void setTextPosition(TextPosition position); 66 | void setBarStyle(BarStyle style); 67 | 68 | public slots: 69 | void setRange(double min, double max); 70 | void setMinimum(double min); 71 | void setMaximum(double max); 72 | void setValue(double value); 73 | void setValue(int value); 74 | 75 | protected: 76 | virtual void paintEvent(QPaintEvent *); 77 | 78 | private: 79 | void drawBar(QPainter &p, QRectF &barRect, QRectF &textRect); 80 | void drawBarBackground(QPainter &p, QRectF &barRect); 81 | void drawTextBackground(QPainter &p, QRectF &textRect); 82 | void drawData(QPainter &p, const QRectF &barRect); 83 | void drawBarStep(QPainter &p, const QRectF &barRect); 84 | void drawText(QPainter &p, QRectF &textRect); 85 | 86 | private: 87 | double m_min, m_max, m_value; 88 | 89 | QColor m_barForeColor; 90 | QColor m_barForeAlternateColor; 91 | QColor m_barBackColor; 92 | QGradientStops m_gradientData; 93 | 94 | QColor m_textForeColor; 95 | QColor m_textBackColor; 96 | 97 | int m_decimals; 98 | int m_radius; 99 | 100 | TextPosition m_textPosition; 101 | BarStyle m_barStyle; 102 | BarStep m_barStep; 103 | }; 104 | 105 | #endif // QTCOLORPROGRESSBAR_H 106 | -------------------------------------------------------------------------------- /qcustomcontrols/progressbar/QtRoundProgressBar.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | HEADERS += \ 4 | $$PWD/QtRoundProgressBar.h \ 5 | 6 | 7 | SOURCES += \ 8 | $$PWD/QtRoundProgressBar.cpp \ 9 | 10 | -------------------------------------------------------------------------------- /qcustomcontrols/progressbar/QtStateProgressBar.h: -------------------------------------------------------------------------------- 1 | #ifndef QTSTATEPROGRESSBAR_H 2 | #define QTSTATEPROGRESSBAR_H 3 | 4 | #include 5 | 6 | class QtStateProgressBar : public QWidget 7 | { 8 | Q_OBJECT 9 | public: 10 | enum Type { NACK, ACK }; 11 | explicit QtStateProgressBar(QWidget *parent = nullptr); 12 | 13 | void setTip(QString tip); 14 | void setNotes(const QStringList ¬es); 15 | void setStates(const QStringList &states); 16 | void setType(Type type); 17 | 18 | void setBarColor(const QColor &color); 19 | void setBarBackColor(const QColor &color); 20 | void setNoteColor(const QColor &color); 21 | void setStateColor(const QColor &color); 22 | void setTipColor(const QColor &color); 23 | void setTipBackColor(const QColor &color); 24 | 25 | QSize sizeHint() const; 26 | QSize minimumSizeHint() const; 27 | 28 | public slots: 29 | void setValue(int value); 30 | void setMaximum(int max); 31 | 32 | protected: 33 | virtual void paintEvent(QPaintEvent *event); 34 | 35 | private: 36 | void drawBackground(QPainter &p); 37 | void drawBarBackground(QPainter &p); 38 | void drawBar(QPainter &p); 39 | void drawBarNumber(QPainter &p); 40 | void drawNote(QPainter &p, int index, const QColor &color); 41 | void drawState(QPainter &p, int index, const QColor &color); 42 | void drawTip(QPainter &p, int index); 43 | 44 | private: 45 | int m_max, m_value; 46 | int m_bigRadius; 47 | int m_smallRadius; 48 | 49 | int m_lineHeight; 50 | int m_lineWidth; 51 | int m_innerLineHeight; 52 | 53 | QString m_tip; 54 | QStringList m_notes; 55 | QStringList m_states; 56 | 57 | QColor m_barColor; 58 | QColor m_barBackColor; 59 | QColor m_noteColor; 60 | QColor m_stateColor; 61 | QColor m_tipColor; 62 | QColor m_tipBackColor; 63 | 64 | Type m_type; 65 | }; 66 | 67 | #endif // QTSTATEPROGRESSBAR_H 68 | -------------------------------------------------------------------------------- /qcustomcontrols/progressbar/QtWaitProgressBar.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | ** 3 | ** Copyright (C) 2019 MaMinJie 4 | ** Contact: https://github.com/canpool 5 | ** 6 | ** This program is free software: you can redistribute it and/or modify 7 | ** it under the terms of the GNU General Public License as published by 8 | ** the Free Software Foundation, either version 3 of the License, or 9 | ** (at your option) any later version. 10 | ** 11 | ** This program is distributed in the hope that it will be useful, 12 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | ** GNU General Public License for more details. 15 | ** 16 | ** You should have received a copy of the GNU General Public License 17 | ** along with this program. If not, see http://www.gnu.org/licenses/. 18 | ** 19 | ****************************************************************************/ 20 | #ifndef QTWAITPROGRESSBAR_H 21 | #define QTWAITPROGRESSBAR_H 22 | 23 | #include 24 | 25 | class QtWaitProgressBar : public QWidget 26 | { 27 | Q_OBJECT 28 | public: 29 | enum WaitType { Line, Pie, Donut, Circle, Taichi, Petal, Bearing, Bubble, Infinite }; 30 | 31 | QtWaitProgressBar(WaitType type = Line, QWidget *parent = nullptr); 32 | 33 | void setForeColor(QColor color); 34 | void setBackColor(QColor color); 35 | void setClockwiseRotate(bool clockwise); 36 | void setRotateDelta(int delta); 37 | 38 | protected: 39 | void paintEvent(QPaintEvent *event); 40 | 41 | private: 42 | void drawLineWait(QPainter &p); 43 | void drawCircleWait(QPainter &p); 44 | void drawDonutWait(QPainter &p); 45 | void drawPieWait(QPainter &p); 46 | void drawTaiChiWait(QPainter &p); 47 | void drawPetalWait(QPainter &p); 48 | void drawBearingWait(QPainter &p); 49 | void drawBubbleWait(QPainter &p); 50 | void drawInfiniteWait(QPainter &p); 51 | 52 | private: 53 | QColor m_foreColor; 54 | QColor m_backColor; 55 | bool m_clockwiseRotate; 56 | int m_rotateDelta; 57 | int m_rotateAngle; 58 | 59 | QTimer *m_timer; 60 | 61 | WaitType m_type; 62 | }; 63 | 64 | #endif // QTWAITPROGRESSBAR_H 65 | -------------------------------------------------------------------------------- /qcustomcontrols/progressbar/QtZoomCircleWait.cpp: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | ** 3 | ** Copyright (C) 2019 MaMinJie 4 | ** Contact: https://github.com/canpool 5 | ** 6 | ** This program is free software: you can redistribute it and/or modify 7 | ** it under the terms of the GNU General Public License as published by 8 | ** the Free Software Foundation, either version 3 of the License, or 9 | ** (at your option) any later version. 10 | ** 11 | ** This program is distributed in the hope that it will be useful, 12 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | ** GNU General Public License for more details. 15 | ** 16 | ** You should have received a copy of the GNU General Public License 17 | ** along with this program. If not, see http://www.gnu.org/licenses/. 18 | ** 19 | ****************************************************************************/ 20 | #include "QtZoomCircleWait.h" 21 | #include 22 | #include 23 | 24 | QtZoomCircleWait::QtZoomCircleWait(QWidget *parent) : QWidget(parent), 25 | m_color(Qt::black), 26 | m_zoomOut(false), 27 | m_zoomDelta(5), 28 | m_radius(0), 29 | m_minRadius(0) 30 | { 31 | m_timer = new QTimer; 32 | connect(m_timer, SIGNAL(timeout()), this, SLOT(update())); 33 | m_timer->start(100); 34 | } 35 | 36 | void QtZoomCircleWait::setColor(QColor color) 37 | { 38 | if (color != m_color) { 39 | m_color = color; 40 | update(); 41 | } 42 | } 43 | 44 | void QtZoomCircleWait::setZoomOut(bool zoomOut) 45 | { 46 | if (zoomOut != m_zoomOut) { 47 | m_zoomOut = zoomOut; 48 | update(); 49 | } 50 | } 51 | 52 | void QtZoomCircleWait::setZoomDelta(int delta) 53 | { 54 | if (delta != m_zoomDelta) { 55 | m_zoomDelta = delta; 56 | update(); 57 | } 58 | } 59 | 60 | void QtZoomCircleWait::setMinRadius(int value) 61 | { 62 | if (value > 0 && value != m_minRadius) { 63 | m_minRadius = value; 64 | update(); 65 | } 66 | } 67 | 68 | void QtZoomCircleWait::setRadius(int value) 69 | { 70 | if (value != m_radius && value > m_minRadius) { 71 | m_radius = value; 72 | update(); 73 | } 74 | } 75 | 76 | void QtZoomCircleWait::paintEvent(QPaintEvent *) 77 | { 78 | QPainter p(this); 79 | p.setRenderHint(QPainter::Antialiasing); 80 | p.translate(width()/2, height()/2); 81 | int side = qMin(width(), height()); 82 | p.scale(side/100.0, side/100.0); 83 | 84 | m_radius += m_zoomDelta; 85 | fixRaidus(50); 86 | drawZoomCricleWait(p); 87 | } 88 | 89 | void QtZoomCircleWait::drawZoomCricleWait(QPainter &p) 90 | { 91 | p.save(); 92 | p.setPen(Qt::NoPen); 93 | p.setBrush(QBrush(m_color)); 94 | p.drawEllipse(-m_radius, -m_radius, 2*m_radius, 2*m_radius); 95 | p.restore(); 96 | } 97 | 98 | void QtZoomCircleWait::fixRaidus(int max) 99 | { 100 | if (m_radius < m_minRadius) { 101 | m_radius = m_minRadius; 102 | m_zoomDelta = qAbs(m_zoomDelta); 103 | } else if (m_radius > max) { 104 | if (m_zoomOut) { 105 | m_radius = max; 106 | m_zoomDelta = -qAbs(m_zoomDelta); 107 | } else { 108 | m_radius = m_minRadius; 109 | m_zoomDelta = qAbs(m_zoomDelta); 110 | } 111 | } 112 | } 113 | -------------------------------------------------------------------------------- /qcustomcontrols/progressbar/QtZoomCircleWait.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | ** 3 | ** Copyright (C) 2019 MaMinJie 4 | ** Contact: https://github.com/canpool 5 | ** 6 | ** This program is free software: you can redistribute it and/or modify 7 | ** it under the terms of the GNU General Public License as published by 8 | ** the Free Software Foundation, either version 3 of the License, or 9 | ** (at your option) any later version. 10 | ** 11 | ** This program is distributed in the hope that it will be useful, 12 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | ** GNU General Public License for more details. 15 | ** 16 | ** You should have received a copy of the GNU General Public License 17 | ** along with this program. If not, see http://www.gnu.org/licenses/. 18 | ** 19 | ****************************************************************************/ 20 | #ifndef QTZOOMCIRCLEWAIT_H 21 | #define QTZOOMCIRCLEWAIT_H 22 | 23 | #include 24 | 25 | class QtZoomCircleWait : public QWidget 26 | { 27 | Q_OBJECT 28 | public: 29 | explicit QtZoomCircleWait(QWidget *parent = nullptr); 30 | 31 | void setColor(QColor color); 32 | void setZoomOut(bool zoomOut); 33 | void setZoomDelta(int delta); 34 | void setMinRadius(int value); 35 | void setRadius(int value); 36 | 37 | protected: 38 | virtual void paintEvent(QPaintEvent *); 39 | virtual void drawZoomCricleWait(QPainter &p); 40 | 41 | private: 42 | void fixRaidus(int max); 43 | 44 | private: 45 | QColor m_color; 46 | bool m_zoomOut; 47 | int m_zoomDelta; 48 | int m_radius; 49 | int m_minRadius; 50 | 51 | QTimer *m_timer; 52 | }; 53 | 54 | #endif // QTZOOMCIRCLEWAIT_H 55 | -------------------------------------------------------------------------------- /qcustomcontrols/progressbar/progressbar.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | HEADERS += \ 4 | $$PWD/QtRoundProgressBar.h \ 5 | $$PWD/QtColorProgressBar.h \ 6 | $$PWD/QtStateProgressBar.h \ 7 | $$PWD/QtWaitProgressBar.h \ 8 | $$PWD/QtZoomCircleWait.h 9 | 10 | SOURCES += \ 11 | $$PWD/QtRoundProgressBar.cpp \ 12 | $$PWD/QtColorProgressBar.cpp \ 13 | $$PWD/QtStateProgressBar.cpp \ 14 | $$PWD/QtWaitProgressBar.cpp \ 15 | $$PWD/QtZoomCircleWait.cpp 16 | -------------------------------------------------------------------------------- /qcustomcontrols/qcustomcontrols.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | include($$PWD/progressbar/progressbar.pri) 4 | include($$PWD/gauge/gauge.pri) 5 | include($$PWD/button/button.pri) 6 | include($$PWD/view/view.pri) 7 | include($$PWD/CstmSpeedPanel/CstmSpeedPanel.pri) 8 | 9 | -------------------------------------------------------------------------------- /qcustomcontrols/view/QtNavTreeView.h: -------------------------------------------------------------------------------- 1 | /*************************************************************************** 2 | ** 3 | ** Copyright (C) 2019 MaMinJie 4 | ** Contact: https://github.com/canpool 5 | ** Reference: http://www.qtcn.org 6 | ** 7 | ** This program is free software: you can redistribute it and/or modify 8 | ** it under the terms of the GNU General Public License as published by 9 | ** the Free Software Foundation, either version 3 of the License, or 10 | ** (at your option) any later version. 11 | ** 12 | ** This program is distributed in the hope that it will be useful, 13 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 14 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 | ** GNU General Public License for more details. 16 | ** 17 | ** You should have received a copy of the GNU General Public License 18 | ** along with this program. If not, see http://www.gnu.org/licenses/. 19 | ** 20 | ****************************************************************************/ 21 | #ifndef QTNAVTREEVIEW_H 22 | #define QTNAVTREEVIEW_H 23 | 24 | #include 25 | #include 26 | 27 | class QStandardItemModel; 28 | class QStandardItem; 29 | 30 | class QtNavTreeView : public QTreeView 31 | { 32 | Q_OBJECT 33 | public: 34 | QtNavTreeView(QWidget *parent); 35 | 36 | void addItem(const QString &text, QStandardItem *parent = nullptr); 37 | void addItem(const QString &parentText, const QString &text); 38 | void setItemInfo(const QString &itemText, const QString &info); 39 | 40 | QColor bgColor() const { return m_bgColor; } 41 | void setBgColor(const QColor &color) { m_bgColor = color; } 42 | 43 | QColor hoverBgColor() const { return m_hoverBgColor; } 44 | void setHoverBgColor(const QColor &color) { m_hoverBgColor = color; } 45 | 46 | QColor checkedBgColor() const { return m_checkedBgColor; } 47 | void setCheckedBgColor(const QColor &color) { m_checkedBgColor = color; } 48 | 49 | QColor textColor() const { return m_textColor; } 50 | void setTextColor(const QColor &color) { m_textColor = color; } 51 | 52 | QColor hoverTextColor() const { return m_hoverTextColor; } 53 | void setHoverTextColor(const QColor &color) { m_hoverTextColor = color; } 54 | 55 | QColor checkedTextColor() const { return m_checkedTextColor; } 56 | void setCheckedTextColor(const QColor &color) { m_checkedTextColor = color; } 57 | 58 | QString infoStr(const QModelIndex &index); 59 | QColor lineColor() const { return m_lineColor; } 60 | void setLineColor(const QColor &color) { m_lineColor = color; } 61 | 62 | private: 63 | QStandardItemModel *m_model; 64 | QColor m_bgColor; 65 | QColor m_hoverBgColor; 66 | QColor m_checkedBgColor; 67 | QColor m_textColor; 68 | QColor m_hoverTextColor; 69 | QColor m_checkedTextColor; 70 | QColor m_lineColor; 71 | 72 | QMap m_infoMap; 73 | }; 74 | 75 | class QtNavTreeDelegate : public QStyledItemDelegate 76 | { 77 | Q_OBJECT 78 | public: 79 | explicit QtNavTreeDelegate(QtNavTreeView *view, QObject *parent); 80 | ~QtNavTreeDelegate(); 81 | 82 | protected: 83 | QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const; 84 | void paint(QPainter *painter, const QStyleOptionViewItem &option, 85 | const QModelIndex &index) const; 86 | 87 | private: 88 | QtNavTreeView *m_view; 89 | QStandardItemModel *m_model; 90 | }; 91 | 92 | #endif // QTNAVTREEVIEW_H 93 | -------------------------------------------------------------------------------- /qcustomcontrols/view/view.pri: -------------------------------------------------------------------------------- 1 | QT += xml 2 | 3 | INCLUDEPATH += $$PWD 4 | 5 | HEADERS += \ 6 | $$PWD/QtNavListView.h \ 7 | $$PWD/QtNavTreeView.h 8 | 9 | SOURCES += \ 10 | $$PWD/QtNavListView.cpp \ 11 | $$PWD/QtNavTreeView.cpp 12 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # 文件结构 2 | ## 子界面 3 | * DllRead 4 | * serialwidget 5 | ## 控件 6 | * gause 7 | * qcustomcontrols 8 | ## 算法 9 | * simulinkmotor 10 | * simulinkpid 11 | * simulinkpid_nofliter 12 | * simulinkwave 13 | ## 说明 14 | 子文件夹均可独立编译,项目的主要功能在子界面中。控件和算法被集成在子界面中。 15 | 具体的描述可查看文档 16 | 主界面由于涉及Ribbon组件,不在其中。但实际上主界面本身并没有具有什么独立的功能,只是实例化了子界面,同时传递了一个速度变量。 17 | 18 | # 文档 19 | * 密码:TDThinker 20 | 21 | # 演示 22 | * https://www.bilibili.com/video/BV1YD4y1m7Fy 23 | 24 | -------------------------------------------------------------------------------- /serialwidget/.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.QT_COMPILER_STDCXX = 201402L 2 | QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 7 3 | QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3 4 | QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0 5 | QMAKE_CXX.COMPILER_MACROS = \ 6 | QT_COMPILER_STDCXX \ 7 | QMAKE_GCC_MAJOR_VERSION \ 8 | QMAKE_GCC_MINOR_VERSION \ 9 | QMAKE_GCC_PATCH_VERSION 10 | QMAKE_CXX.INCDIRS = \ 11 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++ \ 12 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/i686-w64-mingw32 \ 13 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include/c++/backward \ 14 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include \ 15 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0/include-fixed \ 16 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/include 17 | QMAKE_CXX.LIBDIRS = \ 18 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc/i686-w64-mingw32/7.3.0 \ 19 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib/gcc \ 20 | D:/Qt/Qt5.14.2/Tools/mingw730_32/i686-w64-mingw32/lib \ 21 | D:/Qt/Qt5.14.2/Tools/mingw730_32/lib 22 | -------------------------------------------------------------------------------- /serialwidget/main.cpp: -------------------------------------------------------------------------------- 1 | #include "serialwidget.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | SerialWidget w; 8 | w.show(); 9 | return a.exec(); 10 | } 11 | -------------------------------------------------------------------------------- /serialwidget/object_script.SerialPort.Debug: -------------------------------------------------------------------------------- 1 | debug/main.o 2 | debug/serialwidget.o 3 | debug/pid.o 4 | debug/motor.o 5 | debug/pidmodel.o 6 | debug/chartconfig.o 7 | debug/qwdialogpen.o 8 | debug/qrc_res.o 9 | debug/qrc_serial_qc.o 10 | debug/moc_serialwidget.o 11 | debug/moc_chartconfig.o 12 | debug/moc_qwdialogpen.o 13 | -------------------------------------------------------------------------------- /serialwidget/object_script.SerialPort.Release: -------------------------------------------------------------------------------- 1 | release/main.o 2 | release/serialwidget.o 3 | release/pid.o 4 | release/motor.o 5 | release/pidmodel.o 6 | release/chartconfig.o 7 | release/qwdialogpen.o 8 | release/qrc_res.o 9 | release/qrc_serial_qc.o 10 | release/moc_serialwidget.o 11 | release/moc_chartconfig.o 12 | release/moc_qwdialogpen.o 13 | -------------------------------------------------------------------------------- /serialwidget/pid.cpp: -------------------------------------------------------------------------------- 1 | //pid.cpp: 2 | #include 3 | #include "pid.h" 4 | 5 | using namespace std; 6 | 7 | void Pid_control::PID_init() 8 | { 9 | pid.SetSpeed = 0; 10 | pid.ActualSpeed = 0; 11 | pid.err = 0; 12 | pid.err1 = 0; 13 | pid.err2 = 0; 14 | pid.u=0; 15 | pid.u1 = 0; 16 | pid.integral = 0; 17 | pid.err_last = 0; 18 | pid.err_next = 0; 19 | 20 | } 21 | void Pid_control::setpid(double kp,double ki,double kd) 22 | { 23 | pid.Kp = kp; 24 | pid.Ki = ki; 25 | pid.Kd = kd; 26 | } 27 | 28 | double Pid_control::PID_realize(double actualspeed,double setspeed,float timeperiod){ 29 | //假如 p=1 i=0 d=0 会怎么样 30 | pid.SetSpeed =setspeed; 31 | pid.ActualSpeed = actualspeed; 32 | pid.err = pid.SetSpeed - pid.ActualSpeed; //误差 33 | // double incrementSpeed = pid.Kp*(pid.err - pid.err1) + pid.Ki*pid.err + pid.Kd*(pid.err - 2 * pid.err1 + pid.err2); 34 | 35 | //double incrementSpeed = pid.Kp*(pid.err - pid.err_next) + pid.Ki*pid.err + pid.Kd*(pid.err - 2 * pid.err_next + pid.err_last); 36 | double incrementSpeed = pid.Kp*(pid.err - pid.err_next) + pid.Ki*pid.err + pid.Kd*(pid.err - 2 * pid.err_next + pid.err_last); 37 | pid.u=pid.u+incrementSpeed ; 38 | // pid.err2 = pid.err1; 39 | // pid.err1 = pid.err; 40 | pid.err_last = pid.err_next; 41 | pid.err_next = pid.err; 42 | 43 | // return pid.u; 44 | return pid.u; 45 | 46 | } 47 | double Pid_control:: PidIncrement(double actualspeed,double setspeed,float timeperiod)//增量式PID 48 | { 49 | timeperiod=1; 50 | pid.SetSpeed =setspeed; //100 51 | pid.ActualSpeed = actualspeed; //0 52 | pid.err = pid.SetSpeed - pid.ActualSpeed; //误差 100 53 | double increment = pid.Kp*(pid.err - pid.err1) + pid.Ki*pid.err*timeperiod + pid.Kd*1/timeperiod*(pid.err - 2 * pid.err1 + pid.err2); 54 | //控制增量Δu(k)的确定仅与最近3次的采样值有关。 因为 pid参数不能0 ,否则采集不到三次误差 55 | pid.u += increment; //100 56 | pid.err2 = pid.err1; //err1=0 57 | pid.err1 = pid.err; //err=100 err1=100 58 | return pid.u; 59 | } 60 | 61 | double Pid_control:: PidPosition(double actualspeed,double setspeed,float timeperiod)//位置式pid 62 | { 63 | pid.SetSpeed =setspeed; 64 | pid.ActualSpeed = actualspeed; 65 | pid.err =pid.SetSpeed - pid.ActualSpeed; //误差 66 | //u(k)=Kp*e+Ki*pid.integral+Kd*(e-e1) 67 | pid.u = pid.Kp*pid.err + pid.Ki*timeperiod*pid.integral + pid.Kd*1/timeperiod*(pid.err - pid.err1); 68 | pid.integral += pid.err; 69 | pid.err1 = pid.err; 70 | pid.u1 = pid.u; 71 | return pid.u; 72 | } 73 | 74 | 75 | double Pid_control::ReturnErr() 76 | { 77 | return pid.err; 78 | 79 | } 80 | double Pid_control:: Transfer() 81 | { 82 | return 0.5*pid.u1/(1-0.5*pid.u1); 83 | } 84 | -------------------------------------------------------------------------------- /serialwidget/pid.h: -------------------------------------------------------------------------------- 1 | 2 | //pid.h : 增量式PID 3 | #ifndef _PID_H_ 4 | #define _PID_H_ 5 | 6 | typedef struct _pid{ 7 | double SetSpeed; //目标转速 8 | double ActualSpeed; //实际转速 9 | double err; ///e 误差 10 | double err1; //e1前一个误差 11 | double err2; //e2 前前一个误差 12 | double Kp, Ki, Kd; //pid参数 13 | double u; //u(t) 14 | double u1; //u(t)的前一时刻 15 | double integral; ////积分值 16 | 17 | double err_last ; 18 | double err_next ; 19 | }Pid; 20 | 21 | 22 | class Pid_control 23 | { 24 | public: 25 | 26 | void PID_init(); 27 | double PID_realize(double speed,double setspeed,float timeperiod); 28 | double PidIncrement(double actualspeed,double setspeed,float timeperiod);//增量式PID 29 | double PidPosition(double actualspeed,double setspeed,float timeperiod);//位置式pid 30 | double ReturnErr(); 31 | void setpid(double kp,double ki,double kd); 32 | double Transfer(); //取消时沿误差 33 | 34 | public: 35 | int index; 36 | Pid pid; 37 | 38 | }; 39 | #endif 40 | -------------------------------------------------------------------------------- /serialwidget/pin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/serialwidget/pin.png -------------------------------------------------------------------------------- /serialwidget/serial_qc - 副本.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 固定.png 4 | 5 | 6 | -------------------------------------------------------------------------------- /serialwidget/serial_qc.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | pin.png 4 | set.png 5 | usb.png 6 | 7 | 8 | -------------------------------------------------------------------------------- /serialwidget/serialwidget.pri: -------------------------------------------------------------------------------- 1 | QT += core gui 2 | 3 | QT += serialport 4 | 5 | INCLUDEPATH += $$PWD\ 6 | 7 | SOURCES +=$$PWD/serialwidget.cpp\ 8 | $$PWD/pid.cpp 9 | 10 | 11 | 12 | HEADERS +=$$PWD/serialwidget.h\ 13 | $$PWD/pid.h 14 | 15 | FORMS +=$$PWD/serialwidget.ui 16 | 17 | include(../simulinkmotor/motor.pri) 18 | include(../simulinkpid_nofliter/simulinkpid_nofliter.pri) 19 | #include(../ChartConfig/ChartConfig.pri) 20 | 21 | -------------------------------------------------------------------------------- /serialwidget/serialwidget.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2018-04-26T19:07:06 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | QT += serialport 9 | QT += charts 10 | 11 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 12 | 13 | TARGET = SerialPort 14 | 15 | INCLUDEPATH += $$PWD 16 | 17 | SOURCES +=main.cpp\ 18 | serialwidget.cpp\ 19 | pid.cpp 20 | 21 | 22 | 23 | HEADERS +=$$PWD/serialwidget.h\ 24 | pid.h 25 | 26 | FORMS +=$$PWD/serialwidget.ui 27 | include(../simulinkmotor/motor.pri) 28 | include(../simulinkpid_nofliter/simulinkpid_nofliter.pri) 29 | include(../ChartConfig/ChartConfig.pri) 30 | 31 | RESOURCES += \ 32 | serial_qc.qrc 33 | 34 | -------------------------------------------------------------------------------- /serialwidget/set.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/serialwidget/set.png -------------------------------------------------------------------------------- /serialwidget/usb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/serialwidget/usb.png -------------------------------------------------------------------------------- /simulinkmotor/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /simulinkmotor/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | -------------------------------------------------------------------------------- /simulinkmotor/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /simulinkmotor/.idea/simulinkmotor.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /simulinkmotor/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.16) 2 | project(simulinkmotor) 3 | 4 | set(CMAKE_CXX_STANDARD 14) 5 | 6 | include_directories(.) 7 | 8 | add_executable(simulinkmotor 9 | 10 | main.cpp 11 | motor.cpp 12 | motor.h 13 | motor_private.h 14 | motor_types.h 15 | rtw_continuous.h 16 | rtw_solver.h 17 | rtwtypes.h) 18 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/3.16.5/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc.exe") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "4.9.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "90") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "MinGW") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ar.exe") 21 | set(CMAKE_C_COMPILER_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ar.exe") 22 | set(CMAKE_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ranlib.exe") 23 | set(CMAKE_C_COMPILER_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ranlib.exe") 24 | set(CMAKE_LINKER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ld.exe") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW 1) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include-fixed;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "mingw32;gcc;moldname;mingwex;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc;moldname;mingwex") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/lib;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkmotor/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkmotor/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/3.16.5/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/3.16.5/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Windows-10.0.18363") 2 | set(CMAKE_HOST_SYSTEM_NAME "Windows") 3 | set(CMAKE_HOST_SYSTEM_VERSION "10.0.18363") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Windows-10.0.18363") 9 | set(CMAKE_SYSTEM_NAME "Windows") 10 | set(CMAKE_SYSTEM_VERSION "10.0.18363") 11 | set(CMAKE_SYSTEM_PROCESSOR "AMD64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "MinGW Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCInformation.cmake" 11 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCXXInformation.cmake" 12 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake" 14 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeFindCodeBlocks.cmake" 16 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeGenericSystem.cmake" 17 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake" 18 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake" 19 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeRCInformation.cmake" 20 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake" 21 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake" 22 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 23 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-C.cmake" 24 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-CXX.cmake" 25 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU.cmake" 26 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake" 27 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C-ABI.cmake" 28 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C.cmake" 29 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX-ABI.cmake" 30 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX.cmake" 31 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU.cmake" 32 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-windres.cmake" 33 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows.cmake" 34 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/WindowsPaths.cmake" 35 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/ProcessorCount.cmake" 36 | "../CMakeLists.txt" 37 | "CMakeFiles/3.16.5/CMakeCCompiler.cmake" 38 | "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" 39 | "CMakeFiles/3.16.5/CMakeRCCompiler.cmake" 40 | "CMakeFiles/3.16.5/CMakeSystem.cmake" 41 | ) 42 | 43 | # The corresponding makefile is: 44 | set(CMAKE_MAKEFILE_OUTPUTS 45 | "Makefile" 46 | "CMakeFiles/cmake.check_cache" 47 | ) 48 | 49 | # Byproducts of CMake generate step: 50 | set(CMAKE_MAKEFILE_PRODUCTS 51 | "CMakeFiles/CMakeDirectoryInformation.cmake" 52 | ) 53 | 54 | # Dependency information for all targets: 55 | set(CMAKE_DEPEND_INFO_FILES 56 | "CMakeFiles/simulinkmotor.dir/DependInfo.cmake" 57 | ) 58 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir 2 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: w64 3.4 (local)@D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64 2 | Options: 3 | 4 | Options: -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" F:\WorkStation\QT_In_Github\qribbonStudy\simulinkmotor 2 | -- Configuring done 3 | -- Generating done 4 | -- Build files have been written to: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug 5 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkmotor/cmake-build-debug/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/main.cpp 10 | stddef.h 11 | - 12 | stdio.h 13 | - 14 | motor.h 15 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor.h 16 | rtwtypes.h 17 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtwtypes.h 18 | iostream 19 | - 20 | 21 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor.h 22 | cstring 23 | - 24 | rtwtypes.h 25 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtwtypes.h 26 | rtw_continuous.h 27 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_continuous.h 28 | rtw_solver.h 29 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_solver.h 30 | motor_types.h 31 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor_types.h 32 | 33 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor_types.h 34 | 35 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_continuous.h 36 | tmwtypes.h 37 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/tmwtypes.h 38 | rtwtypes.h 39 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtwtypes.h 40 | 41 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_solver.h 42 | rtw_continuous.h 43 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_continuous.h 44 | 45 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtwtypes.h 46 | 47 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/main.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/main.cpp.obj" 8 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/motor.cpp.obj" 9 | ) 10 | set(CMAKE_CXX_COMPILER_ID "GNU") 11 | 12 | # The include file search paths: 13 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 14 | "../." 15 | ) 16 | 17 | # Targets to which this target links. 18 | set(CMAKE_TARGET_LINKED_INFO_FILES 19 | ) 20 | 21 | # Fortran module output directory. 22 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 23 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/simulinkmotor.dir/main.cpp.obj" 3 | "CMakeFiles/simulinkmotor.dir/motor.cpp.obj" 4 | "libsimulinkmotor.dll.a" 5 | "simulinkmotor.exe" 6 | "simulinkmotor.exe.manifest" 7 | "simulinkmotor.pdb" 8 | ) 9 | 10 | # Per-language clean rules from dependency scanning. 11 | foreach(lang CXX) 12 | include(CMakeFiles/simulinkmotor.dir/cmake_clean_${lang}.cmake OPTIONAL) 13 | endforeach() 14 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkmotor.dir/main.cpp.obj 5 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/main.cpp 6 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor.h 7 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor_types.h 8 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_continuous.h 9 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_solver.h 10 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtwtypes.h 11 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj 12 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor.cpp 13 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor.h 14 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor_private.h 15 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/motor_types.h 16 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_continuous.h 17 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtw_solver.h 18 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/rtwtypes.h 19 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkmotor.dir/main.cpp.obj: ../main.cpp 5 | CMakeFiles/simulinkmotor.dir/main.cpp.obj: ../motor.h 6 | CMakeFiles/simulinkmotor.dir/main.cpp.obj: ../motor_types.h 7 | CMakeFiles/simulinkmotor.dir/main.cpp.obj: ../rtw_continuous.h 8 | CMakeFiles/simulinkmotor.dir/main.cpp.obj: ../rtw_solver.h 9 | CMakeFiles/simulinkmotor.dir/main.cpp.obj: ../rtwtypes.h 10 | 11 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj: ../motor.cpp 12 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj: ../motor.h 13 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj: ../motor_private.h 14 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj: ../motor_types.h 15 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj: ../rtw_continuous.h 16 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj: ../rtw_solver.h 17 | CMakeFiles/simulinkmotor.dir/motor.cpp.obj: ../rtwtypes.h 18 | 19 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # compile CXX with D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/g++.exe 5 | CXX_FLAGS = -g -std=gnu++14 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = @CMakeFiles/simulinkmotor.dir/includes_CXX.rsp 10 | 11 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/includes_CXX.rsp: -------------------------------------------------------------------------------- 1 | -IF:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/. 2 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/link.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -E remove -f CMakeFiles\simulinkmotor.dir/objects.a 2 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\ar.exe cr CMakeFiles\simulinkmotor.dir/objects.a @CMakeFiles\simulinkmotor.dir\objects1.rsp 3 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\g++.exe -g -Wl,--whole-archive CMakeFiles\simulinkmotor.dir/objects.a -Wl,--no-whole-archive -o simulinkmotor.exe -Wl,--out-implib,libsimulinkmotor.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\simulinkmotor.dir\linklibs.rsp 4 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/linklibs.rsp: -------------------------------------------------------------------------------- 1 | -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 2 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/objects1.rsp: -------------------------------------------------------------------------------- 1 | CMakeFiles/simulinkmotor.dir/main.cpp.obj CMakeFiles/simulinkmotor.dir/motor.cpp.obj 2 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/CMakeFiles/simulinkmotor.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | 5 | -------------------------------------------------------------------------------- /simulinkmotor/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/simulinkmotor") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Is this installation the result of a crosscompile? 31 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 32 | set(CMAKE_CROSSCOMPILING "FALSE") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkmotor/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /simulinkmotor/ert_main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: ert_main.cpp 7 | // 8 | // Code generated for Simulink model 'motor'. 9 | // 10 | // Model version : 1.25 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Fri Jun 5 21:24:33 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: Intel->x86-64 (Windows64) 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #include 20 | #include // This ert_main.c example uses printf/fflush 21 | #include "motor.h" // Model's header file 22 | #include "rtwtypes.h" 23 | 24 | static To_CdcIntrocompleteModelClass motor_Obj;// Instance of model class 25 | 26 | // 27 | // Associating rt_OneStep with a real-time clock or interrupt service routine 28 | // is what makes the generated code "real-time". The function rt_OneStep is 29 | // always associated with the base rate of the model. Subrates are managed 30 | // by the base rate from inside the generated code. Enabling/disabling 31 | // interrupts and floating point context switches are target specific. This 32 | // example code indicates where these should take place relative to executing 33 | // the generated code step function. Overrun behavior should be tailored to 34 | // your application needs. This example simply sets an error status in the 35 | // real-time model and returns from rt_OneStep. 36 | // 37 | void rt_OneStep(void); 38 | void rt_OneStep(void) 39 | { 40 | static boolean_T OverrunFlag = false; 41 | 42 | // Disable interrupts here 43 | 44 | // Check for overrun 45 | if (OverrunFlag) { 46 | rtmSetErrorStatus(motor_Obj.getRTM(), "Overrun"); 47 | return; 48 | } 49 | 50 | OverrunFlag = true; 51 | 52 | // Save FPU context here (if necessary) 53 | // Re-enable timer or interrupt here 54 | // Set model inputs here 55 | 56 | // Step the model for base rate 57 | motor_Obj.step(); 58 | 59 | // Get model outputs here 60 | 61 | // Indicate task complete 62 | OverrunFlag = false; 63 | 64 | // Disable interrupts here 65 | // Restore FPU context here (if necessary) 66 | // Enable interrupts here 67 | } 68 | 69 | // 70 | // The example "main" function illustrates what is required by your 71 | // application code to initialize, execute, and terminate the generated code. 72 | // Attaching rt_OneStep to a real-time clock is target specific. This example 73 | // illustrates how you do this relative to initializing the model. 74 | // 75 | int_T main(int_T argc, const char *argv[]) 76 | { 77 | // Unused arguments 78 | (void)(argc); 79 | (void)(argv); 80 | 81 | // Initialize model 82 | motor_Obj.initialize(); 83 | 84 | // Simulating the model step behavior (in non real-time) to 85 | // simulate model behavior at stop time. 86 | 87 | while ((rtmGetErrorStatus(motor_Obj.getRTM()) == (NULL)) && 88 | !rtmGetStopRequested(motor_Obj.getRTM())) { 89 | rt_OneStep(); 90 | } 91 | 92 | // Disable rt_OneStep() here 93 | 94 | // Terminate model 95 | motor_Obj.terminate(); 96 | return 0; 97 | } 98 | 99 | // 100 | // File trailer for generated code. 101 | // 102 | // [EOF] 103 | // 104 | -------------------------------------------------------------------------------- /simulinkmotor/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include // This ert_main.c example uses printf/fflush 3 | #include "motor.h" // Model's header file 4 | #include "rtwtypes.h" 5 | #include 6 | using namespace std; 7 | 8 | static To_CdcIntrocompleteModelClass motor_Obj;// Instance of model class 9 | 10 | 11 | void rt_OneStep(void); 12 | void rt_OneStep(void) 13 | { 14 | static boolean_T OverrunFlag = false; 15 | 16 | // Disable interrupts here 17 | 18 | // Check for overrun 19 | if (OverrunFlag) { 20 | rtmSetErrorStatus(motor_Obj.getRTM(), "Overrun"); 21 | return; 22 | } 23 | 24 | OverrunFlag = true; 25 | 26 | // Save FPU context here (if necessary) 27 | // Re-enable timer or interrupt here 28 | // Set model inputs here 29 | 30 | // Step the model 31 | motor_Obj.step(); 32 | 33 | // Get model outputs here 34 | 35 | // Indicate task complete 36 | OverrunFlag = false; 37 | 38 | // Disable interrupts here 39 | // Restore FPU context here (if necessary) 40 | // Enable interrupts here 41 | } 42 | 43 | int_T main() //int_T argc, const char *argv[] 44 | { 45 | // Unused arguments 46 | // (void)(argc); 47 | // (void)(argv); 48 | 49 | // Initialize model 50 | motor_Obj.initialize(); 51 | 52 | 53 | 54 | /* while ((rtmGetErrorStatus(motor_Obj.getRTM()) == (NULL)) && 55 | !rtmGetStopRequested(motor_Obj.getRTM())) {*/ 56 | for(int i=0;i<2;i++) 57 | { 58 | 59 | motor_Obj.motor_U.Voltage=2000; 60 | 61 | rt_OneStep();// 62 | cout<x86-64 (Windows64) 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_motor_private_h_ 20 | #define RTW_HEADER_motor_private_h_ 21 | #include "rtwtypes.h" 22 | 23 | // Private macros used by the generated code to access rtModel 24 | #ifndef rtmIsMajorTimeStep 25 | # define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP) 26 | #endif 27 | 28 | #ifndef rtmIsMinorTimeStep 29 | # define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP) 30 | #endif 31 | 32 | #ifndef rtmSetTPtr 33 | # define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val)) 34 | #endif 35 | 36 | // private model entry point functions 37 | extern void motor_derivatives(); 38 | 39 | #endif // RTW_HEADER_motor_private_h_ 40 | 41 | // 42 | // File trailer for generated code. 43 | // 44 | // [EOF] 45 | // 46 | -------------------------------------------------------------------------------- /simulinkmotor/motor_types.h: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: motor_types.h 7 | // 8 | // Code generated for Simulink model 'motor'. 9 | // 10 | // Model version : 1.25 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Fri Jun 5 21:24:33 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: Intel->x86-64 (Windows64) 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_motor_types_h_ 20 | #define RTW_HEADER_motor_types_h_ 21 | 22 | // Forward declaration for rtModel 23 | typedef struct tag_RTM_motor_T RT_MODEL_motor_T; 24 | 25 | #endif // RTW_HEADER_motor_types_h_ 26 | 27 | // 28 | // File trailer for generated code. 29 | // 30 | // [EOF] 31 | // 32 | -------------------------------------------------------------------------------- /simulinkmotor/rtw_main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: ert_main.cpp 7 | // 8 | // Code generated for Simulink model 'motor'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Fri Jun 5 12:33:23 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: Intel->x86-64 (Windows64) 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #include 20 | #include // This ert_main.c example uses printf/fflush 21 | #include "motor.h" // Model's header file 22 | #include "rtwtypes.h" 23 | 24 | static To_CdcIntrocompleteModelClass motor_Obj;// Instance of model class 25 | 26 | // 27 | // Associating rt_OneStep with a real-time clock or interrupt service routine 28 | // is what makes the generated code "real-time". The function rt_OneStep is 29 | // always associated with the base rate of the model. Subrates are managed 30 | // by the base rate from inside the generated code. Enabling/disabling 31 | // interrupts and floating point context switches are target specific. This 32 | // example code indicates where these should take place relative to executing 33 | // the generated code step function. Overrun behavior should be tailored to 34 | // your application needs. This example simply sets an error status in the 35 | // real-time model and returns from rt_OneStep. 36 | // 37 | void rt_OneStep(void); 38 | void rt_OneStep(void) 39 | { 40 | static boolean_T OverrunFlag = false; 41 | 42 | // Disable interrupts here 43 | 44 | // Check for overrun 45 | if (OverrunFlag) { 46 | rtmSetErrorStatus(motor_Obj.getRTM(), "Overrun"); 47 | return; 48 | } 49 | 50 | OverrunFlag = true; 51 | 52 | // Save FPU context here (if necessary) 53 | // Re-enable timer or interrupt here 54 | // Set model inputs here 55 | 56 | // Step the model for base rate 57 | motor_Obj.step(); 58 | 59 | // Get model outputs here 60 | 61 | // Indicate task complete 62 | OverrunFlag = false; 63 | 64 | // Disable interrupts here 65 | // Restore FPU context here (if necessary) 66 | // Enable interrupts here 67 | } 68 | 69 | // 70 | // The example "main" function illustrates what is required by your 71 | // application code to initialize, execute, and terminate the generated code. 72 | // Attaching rt_OneStep to a real-time clock is target specific. This example 73 | // illustrates how you do this relative to initializing the model. 74 | // 75 | int_T main() //int_T argc, const char *argv[] 76 | { 77 | // Unused arguments 78 | // (void)(argc); 79 | // (void)(argv); 80 | 81 | // Initialize model 82 | motor_Obj.initialize(); 83 | 84 | // Simulating the model step behavior (in non real-time) to 85 | // simulate model behavior at stop time. 86 | 87 | while ((rtmGetErrorStatus(motor_Obj.getRTM()) == (NULL)) && 88 | !rtmGetStopRequested(motor_Obj.getRTM())) { 89 | rt_OneStep(); 90 | } 91 | 92 | // Disable rt_OneStep() here 93 | 94 | // Terminate model 95 | motor_Obj.terminate(); 96 | return 0; 97 | } 98 | 99 | // 100 | // File trailer for generated code. 101 | // 102 | // [EOF] 103 | // 104 | -------------------------------------------------------------------------------- /simulinkmotor/serialwidget.pri: -------------------------------------------------------------------------------- 1 | QT += core gui 2 | 3 | QT += serialport 4 | 5 | INCLUDEPATH += $$PWD 6 | 7 | SOURCES +=$$PWD/serialwidget.cpp 8 | 9 | 10 | 11 | HEADERS +=$$PWD/serialwidget.h 12 | 13 | FORMS +=$$PWD/serialwidget.ui 14 | 15 | -------------------------------------------------------------------------------- /simulinkpid/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /simulinkpid/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | -------------------------------------------------------------------------------- /simulinkpid/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /simulinkpid/.idea/simulinkpid.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /simulinkpid/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.16) 2 | project(simulinkpid) 3 | 4 | set(CMAKE_CXX_STANDARD 14) 5 | 6 | include_directories(.) 7 | 8 | add_executable(simulinkpid 9 | main.cpp 10 | 11 | pidmodel.cpp 12 | pidmodel.h 13 | pidmodel_private.h 14 | pidmodel_types.h 15 | rtwtypes.h) 16 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/3.16.5/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc.exe") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "4.9.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "90") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "MinGW") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ar.exe") 21 | set(CMAKE_C_COMPILER_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ar.exe") 22 | set(CMAKE_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ranlib.exe") 23 | set(CMAKE_C_COMPILER_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ranlib.exe") 24 | set(CMAKE_LINKER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ld.exe") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW 1) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include-fixed;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "mingw32;gcc;moldname;mingwex;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc;moldname;mingwex") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/lib;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/3.16.5/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/3.16.5/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Windows-10.0.18363") 2 | set(CMAKE_HOST_SYSTEM_NAME "Windows") 3 | set(CMAKE_HOST_SYSTEM_VERSION "10.0.18363") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Windows-10.0.18363") 9 | set(CMAKE_SYSTEM_NAME "Windows") 10 | set(CMAKE_SYSTEM_VERSION "10.0.18363") 11 | set(CMAKE_SYSTEM_PROCESSOR "AMD64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "MinGW Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCInformation.cmake" 11 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCXXInformation.cmake" 12 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake" 14 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeFindCodeBlocks.cmake" 16 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeGenericSystem.cmake" 17 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake" 18 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake" 19 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeRCInformation.cmake" 20 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake" 21 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake" 22 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 23 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-C.cmake" 24 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-CXX.cmake" 25 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU.cmake" 26 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake" 27 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C-ABI.cmake" 28 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C.cmake" 29 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX-ABI.cmake" 30 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX.cmake" 31 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU.cmake" 32 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-windres.cmake" 33 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows.cmake" 34 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/WindowsPaths.cmake" 35 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/ProcessorCount.cmake" 36 | "../CMakeLists.txt" 37 | "CMakeFiles/3.16.5/CMakeCCompiler.cmake" 38 | "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" 39 | "CMakeFiles/3.16.5/CMakeRCCompiler.cmake" 40 | "CMakeFiles/3.16.5/CMakeSystem.cmake" 41 | ) 42 | 43 | # The corresponding makefile is: 44 | set(CMAKE_MAKEFILE_OUTPUTS 45 | "Makefile" 46 | "CMakeFiles/cmake.check_cache" 47 | ) 48 | 49 | # Byproducts of CMake generate step: 50 | set(CMAKE_MAKEFILE_PRODUCTS 51 | "CMakeFiles/CMakeDirectoryInformation.cmake" 52 | ) 53 | 54 | # Dependency information for all targets: 55 | set(CMAKE_DEPEND_INFO_FILES 56 | "CMakeFiles/simulinkpid.dir/DependInfo.cmake" 57 | ) 58 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/Makefile2: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | #============================================================================= 10 | # Special targets provided by cmake. 11 | 12 | # Disable implicit rules so canonical targets will work. 13 | .SUFFIXES: 14 | 15 | 16 | # Remove some rules from gmake that .SUFFIXES does not remove. 17 | SUFFIXES = 18 | 19 | .SUFFIXES: .hpux_make_needs_suffix_list 20 | 21 | 22 | # Suppress display of executed commands. 23 | $(VERBOSE).SILENT: 24 | 25 | 26 | # A target that is always out of date. 27 | cmake_force: 28 | 29 | .PHONY : cmake_force 30 | 31 | #============================================================================= 32 | # Set environment variables for the build. 33 | 34 | SHELL = cmd.exe 35 | 36 | # The CMake executable. 37 | CMAKE_COMMAND = "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" 38 | 39 | # The command to remove a file. 40 | RM = "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -E remove -f 41 | 42 | # Escaping for special characters. 43 | EQUALS = = 44 | 45 | # The top-level source directory on which CMake was run. 46 | CMAKE_SOURCE_DIR = F:\WorkStation\QT_In_Github\qribbonStudy\simulinkpid 47 | 48 | # The top-level build directory on which CMake was run. 49 | CMAKE_BINARY_DIR = F:\WorkStation\QT_In_Github\qribbonStudy\simulinkpid\cmake-build-debug 50 | 51 | #============================================================================= 52 | # Directory level rules for the build root directory 53 | 54 | # The main recursive "all" target. 55 | all: CMakeFiles/simulinkpid.dir/all 56 | 57 | .PHONY : all 58 | 59 | # The main recursive "preinstall" target. 60 | preinstall: 61 | 62 | .PHONY : preinstall 63 | 64 | # The main recursive "clean" target. 65 | clean: CMakeFiles/simulinkpid.dir/clean 66 | 67 | .PHONY : clean 68 | 69 | #============================================================================= 70 | # Target rules for target CMakeFiles/simulinkpid.dir 71 | 72 | # All Build rule for target. 73 | CMakeFiles/simulinkpid.dir/all: 74 | $(MAKE) -f CMakeFiles\simulinkpid.dir\build.make CMakeFiles/simulinkpid.dir/depend 75 | $(MAKE) -f CMakeFiles\simulinkpid.dir\build.make CMakeFiles/simulinkpid.dir/build 76 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=F:\WorkStation\QT_In_Github\qribbonStudy\simulinkpid\cmake-build-debug\CMakeFiles --progress-num=1,2,3 "Built target simulinkpid" 77 | .PHONY : CMakeFiles/simulinkpid.dir/all 78 | 79 | # Build rule for subdir invocation for target. 80 | CMakeFiles/simulinkpid.dir/rule: cmake_check_build_system 81 | $(CMAKE_COMMAND) -E cmake_progress_start F:\WorkStation\QT_In_Github\qribbonStudy\simulinkpid\cmake-build-debug\CMakeFiles 3 82 | $(MAKE) -f CMakeFiles\Makefile2 CMakeFiles/simulinkpid.dir/all 83 | $(CMAKE_COMMAND) -E cmake_progress_start F:\WorkStation\QT_In_Github\qribbonStudy\simulinkpid\cmake-build-debug\CMakeFiles 0 84 | .PHONY : CMakeFiles/simulinkpid.dir/rule 85 | 86 | # Convenience name for target. 87 | simulinkpid: CMakeFiles/simulinkpid.dir/rule 88 | 89 | .PHONY : simulinkpid 90 | 91 | # clean rule for target. 92 | CMakeFiles/simulinkpid.dir/clean: 93 | $(MAKE) -f CMakeFiles\simulinkpid.dir\build.make CMakeFiles/simulinkpid.dir/clean 94 | .PHONY : CMakeFiles/simulinkpid.dir/clean 95 | 96 | #============================================================================= 97 | # Special targets to cleanup operation of make. 98 | 99 | # Special rule to run CMake to check the build system integrity. 100 | # No rule that depends on this can have commands that come from listfiles 101 | # because they might be regenerated. 102 | cmake_check_build_system: 103 | $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 0 104 | .PHONY : cmake_check_build_system 105 | 106 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug/CMakeFiles/edit_cache.dir 2 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir 3 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: w64 3.4 (local)@D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64 2 | Options: 3 | 4 | Options: -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" F:\WorkStation\QT_In_Github\qribbonStudy\simulinkpid 2 | -- Configuring done 3 | -- Generating done 4 | -- Build files have been written to: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug 5 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid/cmake-build-debug/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel.cpp 10 | pidmodel.h 11 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel.h 12 | pidmodel_private.h 13 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel_private.h 14 | 15 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel.h 16 | rtwtypes.h 17 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/rtwtypes.h 18 | pidmodel_types.h 19 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel_types.h 20 | 21 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel_private.h 22 | rtwtypes.h 23 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/rtwtypes.h 24 | 25 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel_types.h 26 | 27 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/rtwtypes.h 28 | 29 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/main.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/main.cpp.obj" 8 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj" 9 | ) 10 | set(CMAKE_CXX_COMPILER_ID "GNU") 11 | 12 | # The include file search paths: 13 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 14 | "../." 15 | ) 16 | 17 | # Targets to which this target links. 18 | set(CMAKE_TARGET_LINKED_INFO_FILES 19 | ) 20 | 21 | # Fortran module output directory. 22 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 23 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/simulinkpid.dir/main.cpp.obj" 3 | "CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj" 4 | "libsimulinkpid.dll.a" 5 | "simulinkpid.exe" 6 | "simulinkpid.exe.manifest" 7 | "simulinkpid.pdb" 8 | ) 9 | 10 | # Per-language clean rules from dependency scanning. 11 | foreach(lang CXX) 12 | include(CMakeFiles/simulinkpid.dir/cmake_clean_${lang}.cmake OPTIONAL) 13 | endforeach() 14 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkpid.dir/main.cpp.obj 5 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/main.cpp 6 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel.h 7 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel_types.h 8 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/rtwtypes.h 9 | CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj 10 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel.cpp 11 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel.h 12 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel_private.h 13 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/pidmodel_types.h 14 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/rtwtypes.h 15 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkpid.dir/main.cpp.obj: ../main.cpp 5 | CMakeFiles/simulinkpid.dir/main.cpp.obj: ../pidmodel.h 6 | CMakeFiles/simulinkpid.dir/main.cpp.obj: ../pidmodel_types.h 7 | CMakeFiles/simulinkpid.dir/main.cpp.obj: ../rtwtypes.h 8 | 9 | CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj: ../pidmodel.cpp 10 | CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj: ../pidmodel.h 11 | CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj: ../pidmodel_private.h 12 | CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj: ../pidmodel_types.h 13 | CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj: ../rtwtypes.h 14 | 15 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # compile CXX with D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/g++.exe 5 | CXX_FLAGS = -g -std=gnu++14 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = @CMakeFiles/simulinkpid.dir/includes_CXX.rsp 10 | 11 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/includes_CXX.rsp: -------------------------------------------------------------------------------- 1 | -IF:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/. 2 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/link.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -E remove -f CMakeFiles\simulinkpid.dir/objects.a 2 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\ar.exe cr CMakeFiles\simulinkpid.dir/objects.a @CMakeFiles\simulinkpid.dir\objects1.rsp 3 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\g++.exe -g -Wl,--whole-archive CMakeFiles\simulinkpid.dir/objects.a -Wl,--no-whole-archive -o simulinkpid.exe -Wl,--out-implib,libsimulinkpid.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\simulinkpid.dir\linklibs.rsp 4 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/linklibs.rsp: -------------------------------------------------------------------------------- 1 | -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 2 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/objects1.rsp: -------------------------------------------------------------------------------- 1 | CMakeFiles/simulinkpid.dir/main.cpp.obj CMakeFiles/simulinkpid.dir/pidmodel.cpp.obj 2 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/CMakeFiles/simulinkpid.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | 5 | -------------------------------------------------------------------------------- /simulinkpid/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/simulinkpid") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Is this installation the result of a crosscompile? 31 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 32 | set(CMAKE_CROSSCOMPILING "FALSE") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /simulinkpid/ert_main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: ert_main.cpp 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 09:18:56 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #include 20 | #include // This ert_main.c example uses printf/fflush 21 | #include "pidmodel.h" // Model's header file 22 | #include "rtwtypes.h" 23 | 24 | static pidmodelModelClass pidmodel_Obj;// Instance of model class 25 | 26 | // 27 | // Associating rt_OneStep with a real-time clock or interrupt service routine 28 | // is what makes the generated code "real-time". The function rt_OneStep is 29 | // always associated with the base rate of the model. Subrates are managed 30 | // by the base rate from inside the generated code. Enabling/disabling 31 | // interrupts and floating point context switches are target specific. This 32 | // example code indicates where these should take place relative to executing 33 | // the generated code step function. Overrun behavior should be tailored to 34 | // your application needs. This example simply sets an error status in the 35 | // real-time model and returns from rt_OneStep. 36 | // 37 | void rt_OneStep(void); 38 | void rt_OneStep(void) 39 | { 40 | static boolean_T OverrunFlag = false; 41 | 42 | // Disable interrupts here 43 | 44 | // Check for overrun 45 | if (OverrunFlag) { 46 | rtmSetErrorStatus(pidmodel_Obj.getRTM(), "Overrun"); 47 | return; 48 | } 49 | 50 | OverrunFlag = true; 51 | 52 | // Save FPU context here (if necessary) 53 | // Re-enable timer or interrupt here 54 | // Set model inputs here 55 | 56 | // Step the model 57 | pidmodel_Obj.step(); 58 | 59 | // Get model outputs here 60 | 61 | // Indicate task complete 62 | OverrunFlag = false; 63 | 64 | // Disable interrupts here 65 | // Restore FPU context here (if necessary) 66 | // Enable interrupts here 67 | } 68 | 69 | // 70 | // The example "main" function illustrates what is required by your 71 | // application code to initialize, execute, and terminate the generated code. 72 | // Attaching rt_OneStep to a real-time clock is target specific. This example 73 | // illustrates how you do this relative to initializing the model. 74 | // 75 | int_T main(int_T argc, const char *argv[]) 76 | { 77 | // Unused arguments 78 | (void)(argc); 79 | (void)(argv); 80 | 81 | // Initialize model 82 | pidmodel_Obj.initialize(); 83 | 84 | // Attach rt_OneStep to a timer or interrupt service routine with 85 | // period 0.02 seconds (the model's base sample time) here. The 86 | // call syntax for rt_OneStep is 87 | // 88 | // rt_OneStep(); 89 | 90 | printf("Warning: The simulation will run forever. " 91 | "Generated ERT main won't simulate model step behavior. " 92 | "To change this behavior select the 'MAT-file logging' option.\n"); 93 | fflush((NULL)); 94 | while (rtmGetErrorStatus(pidmodel_Obj.getRTM()) == (NULL)) { 95 | // Perform other application tasks here 96 | } 97 | 98 | // Disable rt_OneStep() here 99 | 100 | // Terminate model 101 | pidmodel_Obj.terminate(); 102 | return 0; 103 | } 104 | 105 | // 106 | // File trailer for generated code. 107 | // 108 | // [EOF] 109 | // 110 | -------------------------------------------------------------------------------- /simulinkpid/main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: ert_main.cpp 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 09:18:56 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #include 20 | #include // This ert_main.c example uses printf/fflush 21 | #include "pidmodel.h" // Model's header file 22 | #include "rtwtypes.h" 23 | #include 24 | using namespace std; 25 | static pidmodelModelClass pidmodel_Obj;// Instance of model class 26 | 27 | // 28 | // Associating rt_OneStep with a real-time clock or interrupt service routine 29 | // is what makes the generated code "real-time". The function rt_OneStep is 30 | // always associated with the base rate of the model. Subrates are managed 31 | // by the base rate from inside the generated code. Enabling/disabling 32 | // interrupts and floating point context switches are target specific. This 33 | // example code indicates where these should take place relative to executing 34 | // the generated code step function. Overrun behavior should be tailored to 35 | // your application needs. This example simply sets an error status in the 36 | // real-time model and returns from rt_OneStep. 37 | // 38 | void Pidrt_OneStep(float timeperiod); 39 | void Pidrt_OneStep(float timeperiod) 40 | { 41 | static boolean_T OverrunFlag = false; 42 | 43 | // Disable interrupts here 44 | 45 | // Check for overrun 46 | if (OverrunFlag) { 47 | rtmSetErrorStatus(pidmodel_Obj.getRTM(), "Overrun"); 48 | return; 49 | } 50 | 51 | OverrunFlag = true; 52 | 53 | // Save FPU context here (if necessary) 54 | // Re-enable timer or interrupt here 55 | // Set model inputs here 56 | 57 | // Step the model 58 | pidmodel_Obj.step( timeperiod); 59 | 60 | // Get model outputs here 61 | 62 | // Indicate task complete 63 | OverrunFlag = false; 64 | 65 | // Disable interrupts here 66 | // Restore FPU context here (if necessary) 67 | // Enable interrupts here 68 | } 69 | 70 | // 71 | // The example "main" function illustrates what is required by your 72 | // application code to initialize, execute, and terminate the generated code. 73 | // Attaching rt_OneStep to a real-time clock is target specific. This example 74 | // illustrates how you do this relative to initializing the model. 75 | // 76 | int_T main() 77 | { 78 | 79 | pidmodel_Obj.initialize(); 80 | 81 | // Attach rt_OneStep to a timer or interrupt service routine with 82 | // period 0.02 seconds (the model's base sample time) here. The 83 | // call syntax for rt_OneStep is 84 | // 85 | 86 | for (int i=0 ;i<10;i++) 87 | { 88 | pidmodel_Obj.pidmodel_U.error=10; 89 | 90 | Pidrt_OneStep(0.02); 91 | cout</Filter Coefficient' incorporates: 28 | // DiscreteIntegrator: '/Filter' 29 | // Gain: '/Derivative Gain' 30 | // Inport: '/error' 31 | // Sum: '/SumD' 32 | 33 | rtb_FilterCoefficient = (pid.Kd* pidmodel_U.error - 34 | pidmodel_DW.Filter_DSTATE) * pid.N; //过滤系数,可以不加入 35 | 36 | // Outport: '/u' incorporates: 37 | // DiscreteIntegrator: '/Integrator' 38 | // Gain: '/Proportional Gain' 39 | // Inport: '/error' 40 | // Sum: '/Sum' 41 | 42 | pidmodel_Y.u = (pid.Kp * pidmodel_U.error + 43 | pidmodel_DW.Integrator_DSTATE) + rtb_FilterCoefficient; //最终输出 44 | 45 | // Update for DiscreteIntegrator: '/Integrator' incorporates: 46 | // Gain: '/Integral Gain' 47 | // Inport: '/error' 48 | 49 | pidmodel_DW.Integrator_DSTATE += pid.Ki * pidmodel_U.error * timeperiod; //积分状态 50 | 51 | // Update for DiscreteIntegrator: '/Filter' 52 | pidmodel_DW.Filter_DSTATE += timeperiod * rtb_FilterCoefficient; //过滤器,可以忽略 53 | } 54 | 55 | // Model initialize function 56 | void pidmodelModelClass::initialize() 57 | { 58 | // Registration code 59 | 60 | // states (dwork) 61 | pidmodel_DW.Integrator_DSTATE = 0.0; 62 | pidmodel_DW.Filter_DSTATE = 0.0; 63 | 64 | // external inputs 65 | pidmodel_U.error = 0.0; 66 | 67 | // external outputs 68 | pidmodel_Y.u = 0.0; 69 | pid.Kp=21.143; 70 | pid.Ki=53.956; 71 | pid.Kd=1.14170; 72 | pid.N=81.23589; 73 | 74 | 75 | 76 | } 77 | void pidmodelModelClass::parainit() 78 | { 79 | 80 | } 81 | 82 | // Model terminate function 83 | void pidmodelModelClass::terminate() 84 | { 85 | // (no terminate code required) 86 | } 87 | 88 | // Constructor 89 | pidmodelModelClass::pidmodelModelClass() : pidmodel_M() 90 | { 91 | // Currently there is no constructor body generated. 92 | } 93 | 94 | // Destructor 95 | pidmodelModelClass::~pidmodelModelClass() 96 | { 97 | // Currently there is no destructor body generated. 98 | } 99 | 100 | // Real-Time Model get method 101 | RT_MODEL_pidmodel_T * pidmodelModelClass::getRTM() 102 | { 103 | return (&pidmodel_M); 104 | } 105 | 106 | // 107 | // File trailer for generated code. 108 | // 109 | // [EOF] 110 | // 111 | -------------------------------------------------------------------------------- /simulinkpid/pidmodel_private.h: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: pidmodel_private.h 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 09:18:56 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_pidmodel_private_h_ 20 | #define RTW_HEADER_pidmodel_private_h_ 21 | #include "rtwtypes.h" 22 | #endif // RTW_HEADER_pidmodel_private_h_ 23 | 24 | // 25 | // File trailer for generated code. 26 | // 27 | // [EOF] 28 | // 29 | -------------------------------------------------------------------------------- /simulinkpid/pidmodel_types.h: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: pidmodel_types.h 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 09:18:56 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_pidmodel_types_h_ 20 | #define RTW_HEADER_pidmodel_types_h_ 21 | 22 | // Forward declaration for rtModel 23 | typedef struct tag_RTM_pidmodel_T RT_MODEL_pidmodel_T; 24 | 25 | #endif // RTW_HEADER_pidmodel_types_h_ 26 | 27 | // 28 | // File trailer for generated code. 29 | // 30 | // [EOF] 31 | // 32 | -------------------------------------------------------------------------------- /simulinkpid/simulinkpid.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | SOURCES +=$$PWD/pidmodel.cpp\ 4 | 5 | 6 | 7 | 8 | HEADERS +=$$PWD/rtw_solver.h\ 9 | $$PWD/rtwtypes.h\ 10 | $$PWD/rtw_continuous.h\ 11 | $$PWD/pidmodel_types.h\ 12 | $$PWD/pidmodel_private.h\ 13 | $$PWD/pidmodel.h -------------------------------------------------------------------------------- /simulinkpid/simulinkpid.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid/simulinkpid.rar -------------------------------------------------------------------------------- /simulinkpid_nofliter/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/.idea/simulinkpid_nofliter.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.16) 2 | project(simulinkpid_nofliter) 3 | 4 | set(CMAKE_CXX_STANDARD 14) 5 | 6 | include_directories(.) 7 | 8 | add_executable(simulinkpid_nofliter 9 | 10 | main.cpp 11 | pidmodel.cpp 12 | pidmodel.h 13 | pidmodel_private.h 14 | pidmodel_types.h 15 | rtwtypes.h) 16 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/3.16.5/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc.exe") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "4.9.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "90") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "MinGW") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ar.exe") 21 | set(CMAKE_C_COMPILER_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ar.exe") 22 | set(CMAKE_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ranlib.exe") 23 | set(CMAKE_C_COMPILER_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ranlib.exe") 24 | set(CMAKE_LINKER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ld.exe") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW 1) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include-fixed;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "mingw32;gcc;moldname;mingwex;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc;moldname;mingwex") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/lib;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/3.16.5/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/3.16.5/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Windows-10.0.18363") 2 | set(CMAKE_HOST_SYSTEM_NAME "Windows") 3 | set(CMAKE_HOST_SYSTEM_VERSION "10.0.18363") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Windows-10.0.18363") 9 | set(CMAKE_SYSTEM_NAME "Windows") 10 | set(CMAKE_SYSTEM_VERSION "10.0.18363") 11 | set(CMAKE_SYSTEM_PROCESSOR "AMD64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "MinGW Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCInformation.cmake" 11 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCXXInformation.cmake" 12 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake" 14 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeFindCodeBlocks.cmake" 16 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeGenericSystem.cmake" 17 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake" 18 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake" 19 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeRCInformation.cmake" 20 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake" 21 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake" 22 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 23 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-C.cmake" 24 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-CXX.cmake" 25 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU.cmake" 26 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake" 27 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C-ABI.cmake" 28 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C.cmake" 29 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX-ABI.cmake" 30 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX.cmake" 31 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU.cmake" 32 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-windres.cmake" 33 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows.cmake" 34 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/WindowsPaths.cmake" 35 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/ProcessorCount.cmake" 36 | "../CMakeLists.txt" 37 | "CMakeFiles/3.16.5/CMakeCCompiler.cmake" 38 | "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" 39 | "CMakeFiles/3.16.5/CMakeRCCompiler.cmake" 40 | "CMakeFiles/3.16.5/CMakeSystem.cmake" 41 | ) 42 | 43 | # The corresponding makefile is: 44 | set(CMAKE_MAKEFILE_OUTPUTS 45 | "Makefile" 46 | "CMakeFiles/cmake.check_cache" 47 | ) 48 | 49 | # Byproducts of CMake generate step: 50 | set(CMAKE_MAKEFILE_PRODUCTS 51 | "CMakeFiles/CMakeDirectoryInformation.cmake" 52 | ) 53 | 54 | # Dependency information for all targets: 55 | set(CMAKE_DEPEND_INFO_FILES 56 | "CMakeFiles/simulinkpid_nofliter.dir/DependInfo.cmake" 57 | ) 58 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir 2 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: w64 3.4 (local)@D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64 2 | Options: 3 | 4 | Options: -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" F:\WorkStation\QT_In_Github\qribbonStudy\simulinkpid_nofliter 2 | -- Configuring done 3 | -- Generating done 4 | -- Build files have been written to: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug 5 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/main.cpp 10 | stddef.h 11 | - 12 | stdio.h 13 | - 14 | pidmodel.h 15 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.h 16 | rtwtypes.h 17 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/rtwtypes.h 18 | iostream 19 | - 20 | 21 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.cpp 22 | pidmodel.h 23 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.h 24 | pidmodel_private.h 25 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel_private.h 26 | 27 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.h 28 | rtwtypes.h 29 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/rtwtypes.h 30 | pidmodel_types.h 31 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel_types.h 32 | 33 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel_private.h 34 | rtwtypes.h 35 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/rtwtypes.h 36 | 37 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel_types.h 38 | 39 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/rtwtypes.h 40 | 41 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/main.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj" 8 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj" 9 | ) 10 | set(CMAKE_CXX_COMPILER_ID "GNU") 11 | 12 | # The include file search paths: 13 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 14 | "../." 15 | ) 16 | 17 | # Targets to which this target links. 18 | set(CMAKE_TARGET_LINKED_INFO_FILES 19 | ) 20 | 21 | # Fortran module output directory. 22 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 23 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj" 3 | "CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj" 4 | "libsimulinkpid_nofliter.dll.a" 5 | "simulinkpid_nofliter.exe" 6 | "simulinkpid_nofliter.exe.manifest" 7 | "simulinkpid_nofliter.pdb" 8 | ) 9 | 10 | # Per-language clean rules from dependency scanning. 11 | foreach(lang CXX) 12 | include(CMakeFiles/simulinkpid_nofliter.dir/cmake_clean_${lang}.cmake OPTIONAL) 13 | endforeach() 14 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj 5 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/main.cpp 6 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.h 7 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel_types.h 8 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/rtwtypes.h 9 | CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj 10 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.cpp 11 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel.h 12 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel_private.h 13 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/pidmodel_types.h 14 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/rtwtypes.h 15 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj: ../main.cpp 5 | CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj: ../pidmodel.h 6 | CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj: ../pidmodel_types.h 7 | CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj: ../rtwtypes.h 8 | 9 | CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj: ../pidmodel.cpp 10 | CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj: ../pidmodel.h 11 | CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj: ../pidmodel_private.h 12 | CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj: ../pidmodel_types.h 13 | CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj: ../rtwtypes.h 14 | 15 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # compile CXX with D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/g++.exe 5 | CXX_FLAGS = -g -std=gnu++14 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = @CMakeFiles/simulinkpid_nofliter.dir/includes_CXX.rsp 10 | 11 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/includes_CXX.rsp: -------------------------------------------------------------------------------- 1 | -IF:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/. 2 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/link.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -E remove -f CMakeFiles\simulinkpid_nofliter.dir/objects.a 2 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\ar.exe cr CMakeFiles\simulinkpid_nofliter.dir/objects.a @CMakeFiles\simulinkpid_nofliter.dir\objects1.rsp 3 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\g++.exe -g -Wl,--whole-archive CMakeFiles\simulinkpid_nofliter.dir/objects.a -Wl,--no-whole-archive -o simulinkpid_nofliter.exe -Wl,--out-implib,libsimulinkpid_nofliter.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\simulinkpid_nofliter.dir\linklibs.rsp 4 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/linklibs.rsp: -------------------------------------------------------------------------------- 1 | -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 2 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/objects1.rsp: -------------------------------------------------------------------------------- 1 | CMakeFiles/simulinkpid_nofliter.dir/main.cpp.obj CMakeFiles/simulinkpid_nofliter.dir/pidmodel.cpp.obj 2 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/CMakeFiles/simulinkpid_nofliter.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | 5 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/simulinkpid_nofliter") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Is this installation the result of a crosscompile? 31 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 32 | set(CMAKE_CROSSCOMPILING "FALSE") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkpid_nofliter/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/ert_main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: ert_main.cpp 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 10:55:35 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #include 20 | #include // This ert_main.c example uses printf/fflush 21 | #include "pidmodel.h" // Model's header file 22 | #include "rtwtypes.h" 23 | 24 | static pidmodelModelClass pidmodel_Obj;// Instance of model class 25 | 26 | // 27 | // Associating rt_OneStep with a real-time clock or interrupt service routine 28 | // is what makes the generated code "real-time". The function rt_OneStep is 29 | // always associated with the base rate of the model. Subrates are managed 30 | // by the base rate from inside the generated code. Enabling/disabling 31 | // interrupts and floating point context switches are target specific. This 32 | // example code indicates where these should take place relative to executing 33 | // the generated code step function. Overrun behavior should be tailored to 34 | // your application needs. This example simply sets an error status in the 35 | // real-time model and returns from rt_OneStep. 36 | // 37 | void rt_OneStep(void); 38 | void rt_OneStep(void) 39 | { 40 | static boolean_T OverrunFlag = false; 41 | 42 | // Disable interrupts here 43 | 44 | // Check for overrun 45 | if (OverrunFlag) { 46 | rtmSetErrorStatus(pidmodel_Obj.getRTM(), "Overrun"); 47 | return; 48 | } 49 | 50 | OverrunFlag = true; 51 | 52 | // Save FPU context here (if necessary) 53 | // Re-enable timer or interrupt here 54 | // Set model inputs here 55 | 56 | // Step the model 57 | pidmodel_Obj.step(); 58 | 59 | // Get model outputs here 60 | 61 | // Indicate task complete 62 | OverrunFlag = false; 63 | 64 | // Disable interrupts here 65 | // Restore FPU context here (if necessary) 66 | // Enable interrupts here 67 | } 68 | 69 | // 70 | // The example "main" function illustrates what is required by your 71 | // application code to initialize, execute, and terminate the generated code. 72 | // Attaching rt_OneStep to a real-time clock is target specific. This example 73 | // illustrates how you do this relative to initializing the model. 74 | // 75 | int_T main(int_T argc, const char *argv[]) 76 | { 77 | // Unused arguments 78 | (void)(argc); 79 | (void)(argv); 80 | 81 | // Initialize model 82 | pidmodel_Obj.initialize(); 83 | 84 | // Attach rt_OneStep to a timer or interrupt service routine with 85 | // period 0.02 seconds (the model's base sample time) here. The 86 | // call syntax for rt_OneStep is 87 | // 88 | // rt_OneStep(); 89 | 90 | printf("Warning: The simulation will run forever. " 91 | "Generated ERT main won't simulate model step behavior. " 92 | "To change this behavior select the 'MAT-file logging' option.\n"); 93 | fflush((NULL)); 94 | while (rtmGetErrorStatus(pidmodel_Obj.getRTM()) == (NULL)) { 95 | // Perform other application tasks here 96 | } 97 | 98 | // Disable rt_OneStep() here 99 | 100 | // Terminate model 101 | pidmodel_Obj.terminate(); 102 | return 0; 103 | } 104 | 105 | // 106 | // File trailer for generated code. 107 | // 108 | // [EOF] 109 | // 110 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: ert_main.cpp 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 10:55:35 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #include 20 | #include // This ert_main.c example uses printf/fflush 21 | #include "pidmodel.h" // Model's header file 22 | #include "rtwtypes.h" 23 | #include 24 | using namespace std; 25 | static pidmodelModelClass pidmodel_Obj;// Instance of model class 26 | 27 | // 28 | // Associating rt_OneStep with a real-time clock or interrupt service routine 29 | // is what makes the generated code "real-time". The function rt_OneStep is 30 | // always associated with the base rate of the model. Subrates are managed 31 | // by the base rate from inside the generated code. Enabling/disabling 32 | // interrupts and floating point context switches are target specific. This 33 | // example code indicates where these should take place relative to executing 34 | // the generated code step function. Overrun behavior should be tailored to 35 | // your application needs. This example simply sets an error status in the 36 | // real-time model and returns from rt_OneStep. 37 | // 38 | void Pidrt_OneStep(float timeperiod); 39 | void Pidrt_OneStep(float timeperiod) 40 | { 41 | static boolean_T OverrunFlag = false; 42 | 43 | // Disable interrupts here 44 | 45 | // Check for overrun 46 | if (OverrunFlag) { 47 | rtmSetErrorStatus(pidmodel_Obj.getRTM(), "Overrun"); 48 | return; 49 | } 50 | 51 | OverrunFlag = true; 52 | 53 | // Save FPU context here (if necessary) 54 | // Re-enable timer or interrupt here 55 | // Set model inputs here 56 | 57 | // Step the model 58 | pidmodel_Obj.step(timeperiod); 59 | 60 | // Get model outputs here 61 | 62 | // Indicate task complete 63 | OverrunFlag = false; 64 | 65 | // Disable interrupts here 66 | // Restore FPU context here (if necessary) 67 | // Enable interrupts here 68 | } 69 | 70 | // 71 | // The example "main" function illustrates what is required by your 72 | // application code to initialize, execute, and terminate the generated code. 73 | // Attaching rt_OneStep to a real-time clock is target specific. This example 74 | // illustrates how you do this relative to initializing the model. 75 | // 76 | int_T main() 77 | { 78 | 79 | // Initialize model 80 | pidmodel_Obj.initialize(); 81 | 82 | // Attach rt_OneStep to a timer or interrupt service routine with 83 | // period 0.02 seconds (the model's base sample time) here. The 84 | // call syntax for rt_OneStep is 85 | // 86 | // rt_OneStep(); 87 | 88 | // printf("Warning: The simulation will run forever. " 89 | // "Generated ERT main won't simulate model step behavior. " 90 | // "To change this behavior select the 'MAT-file logging' option.\n"); 91 | // fflush((NULL)); 92 | // while (rtmGetErrorStatus(pidmodel_Obj.getRTM()) == (NULL)) { 93 | // // Perform other application tasks here 94 | // } 95 | 96 | // Disable rt_OneStep() here 97 | for (int i=0 ;i<10;i++) 98 | { float a; 99 | cin>>a; 100 | pidmodel_Obj.pidmodel_U.error=a; 101 | 102 | Pidrt_OneStep(0.02); 103 | cout</TSamp' incorporates: 28 | // Gain: '/Derivative Gain' 29 | // Inport: '/error' 30 | // 31 | // About '/TSamp': 32 | // y = u * K where K = 1 / ( w * Ts ) 33 | 34 | rtb_TSamp = pid.Kd * pidmodel_U.error * 1/timeperiod; 35 | 36 | // Outport: '/u' incorporates: 37 | // Delay: '/UD' 38 | // DiscreteIntegrator: '/Integrator' 39 | // Gain: '/Proportional Gain' 40 | // Inport: '/error' 41 | // Sum: '/Diff' 42 | // Sum: '/Sum' 43 | 44 | pidmodel_Y.u = (pid.Kp * pidmodel_U.error + 45 | pidmodel_DW.Integrator_DSTATE) + (rtb_TSamp - 46 | pidmodel_DW.UD_DSTATE); 47 | 48 | // Update for DiscreteIntegrator: '/Integrator' incorporates: 49 | // Gain: '/Integral Gain' 50 | // Inport: '/error' 51 | 52 | pidmodel_DW.Integrator_DSTATE += pid.Ki * pidmodel_U.error *timeperiod; 53 | 54 | // Update for Delay: '/UD' 55 | pidmodel_DW.UD_DSTATE = rtb_TSamp; 56 | } 57 | 58 | // Model initialize function 59 | void pidmodelModelClass::initialize() 60 | { 61 | // Registration code 62 | 63 | // states (dwork) 64 | pidmodel_DW.Integrator_DSTATE = 0.0; 65 | pidmodel_DW.UD_DSTATE = 0.0; 66 | 67 | // external inputs 68 | pidmodel_U.error = 0.0; 69 | 70 | // external outputs 71 | pidmodel_Y.u = 0.0; 72 | pid.Kp=21.143; 73 | pid.Ki=53.956; 74 | pid.Kd=1.14170; 75 | } 76 | void pidmodelModelClass::parainit(float Kp,float Ki,float Kd) 77 | { 78 | pid.Kp=Kp; 79 | pid.Ki=Ki; 80 | pid.Kd=Kd; 81 | } 82 | 83 | // Model terminate function 84 | void pidmodelModelClass::terminate() 85 | { 86 | // (no terminate code required) 87 | } 88 | 89 | // Constructor 90 | pidmodelModelClass::pidmodelModelClass() : pidmodel_M() 91 | { 92 | // Currently there is no constructor body generated. 93 | } 94 | 95 | // Destructor 96 | pidmodelModelClass::~pidmodelModelClass() 97 | { 98 | // Currently there is no destructor body generated. 99 | } 100 | 101 | // Real-Time Model get method 102 | RT_MODEL_pidmodel_T * pidmodelModelClass::getRTM() 103 | { 104 | return (&pidmodel_M); 105 | } 106 | 107 | // 108 | // File trailer for generated code. 109 | // 110 | // [EOF] 111 | // 112 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/pidmodel_private.h: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: pidmodel_private.h 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 10:55:35 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_pidmodel_private_h_ 20 | #define RTW_HEADER_pidmodel_private_h_ 21 | #include "rtwtypes.h" 22 | #endif // RTW_HEADER_pidmodel_private_h_ 23 | 24 | // 25 | // File trailer for generated code. 26 | // 27 | // [EOF] 28 | // 29 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/pidmodel_types.h: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: pidmodel_types.h 7 | // 8 | // Code generated for Simulink model 'pidmodel'. 9 | // 10 | // Model version : 1.24 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 10:55:35 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: 32-bit Generic 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_pidmodel_types_h_ 20 | #define RTW_HEADER_pidmodel_types_h_ 21 | 22 | // Forward declaration for rtModel 23 | typedef struct tag_RTM_pidmodel_T RT_MODEL_pidmodel_T; 24 | 25 | #endif // RTW_HEADER_pidmodel_types_h_ 26 | 27 | // 28 | // File trailer for generated code. 29 | // 30 | // [EOF] 31 | // 32 | -------------------------------------------------------------------------------- /simulinkpid_nofliter/simulinkpid_nofliter.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | SOURCES +=$$PWD/pidmodel.cpp\ 4 | 5 | 6 | 7 | 8 | HEADERS += $$PWD/rtwtypes.h\ 9 | $$PWD/pidmodel_types.h\ 10 | $$PWD/pidmodel_private.h\ 11 | $$PWD/pidmodel.h -------------------------------------------------------------------------------- /simulinkpid_nofliter/simulinkpid_nofliter.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkpid_nofliter/simulinkpid_nofliter.rar -------------------------------------------------------------------------------- /simulinkwave/.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /simulinkwave/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /simulinkwave/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | -------------------------------------------------------------------------------- /simulinkwave/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /simulinkwave/.idea/simulinkwave.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /simulinkwave/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.16) 2 | project(simulinkwave) 3 | 4 | set(CMAKE_CXX_STANDARD 14) 5 | 6 | include_directories(.) 7 | 8 | add_executable(simulinkwave 9 | main.cpp 10 | rtwtypes.h 11 | rtw_continuous.h 12 | rtw_solver.h 13 | wave.cpp 14 | wave.h 15 | wave_private.h 16 | wave_types.h) 17 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/3.16.5/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc.exe") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "4.9.2") 5 | set(CMAKE_C_COMPILER_VERSION_INTERNAL "") 6 | set(CMAKE_C_COMPILER_WRAPPER "") 7 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "90") 8 | set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") 9 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 10 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 11 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 12 | 13 | set(CMAKE_C_PLATFORM_ID "MinGW") 14 | set(CMAKE_C_SIMULATE_ID "") 15 | set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") 16 | set(CMAKE_C_SIMULATE_VERSION "") 17 | 18 | 19 | 20 | set(CMAKE_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ar.exe") 21 | set(CMAKE_C_COMPILER_AR "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ar.exe") 22 | set(CMAKE_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ranlib.exe") 23 | set(CMAKE_C_COMPILER_RANLIB "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/gcc-ranlib.exe") 24 | set(CMAKE_LINKER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/ld.exe") 25 | set(CMAKE_MT "") 26 | set(CMAKE_COMPILER_IS_GNUCC 1) 27 | set(CMAKE_C_COMPILER_LOADED 1) 28 | set(CMAKE_C_COMPILER_WORKS TRUE) 29 | set(CMAKE_C_ABI_COMPILED TRUE) 30 | set(CMAKE_COMPILER_IS_MINGW 1) 31 | set(CMAKE_COMPILER_IS_CYGWIN ) 32 | if(CMAKE_COMPILER_IS_CYGWIN) 33 | set(CYGWIN 1) 34 | set(UNIX 1) 35 | endif() 36 | 37 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 38 | 39 | if(CMAKE_COMPILER_IS_MINGW) 40 | set(MINGW 1) 41 | endif() 42 | set(CMAKE_C_COMPILER_ID_RUN 1) 43 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 44 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 45 | set(CMAKE_C_LINKER_PREFERENCE 10) 46 | 47 | # Save compiler ABI information. 48 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 49 | set(CMAKE_C_COMPILER_ABI "") 50 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 51 | 52 | if(CMAKE_C_SIZEOF_DATA_PTR) 53 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 54 | endif() 55 | 56 | if(CMAKE_C_COMPILER_ABI) 57 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 58 | endif() 59 | 60 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 61 | set(CMAKE_LIBRARY_ARCHITECTURE "") 62 | endif() 63 | 64 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 65 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 66 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 67 | endif() 68 | 69 | 70 | 71 | 72 | 73 | set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2/include-fixed;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/include") 74 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "mingw32;gcc;moldname;mingwex;advapi32;shell32;user32;kernel32;iconv;mingw32;gcc;moldname;mingwex") 75 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.2;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib/gcc;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/x86_64-w64-mingw32/lib;D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/lib") 76 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 77 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkwave/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkwave/cmake-build-debug/CMakeFiles/3.16.5/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/3.16.5/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/3.16.5/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "Windows-10.0.18363") 2 | set(CMAKE_HOST_SYSTEM_NAME "Windows") 3 | set(CMAKE_HOST_SYSTEM_VERSION "10.0.18363") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "AMD64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "Windows-10.0.18363") 9 | set(CMAKE_SYSTEM_NAME "Windows") 10 | set(CMAKE_SYSTEM_VERSION "10.0.18363") 11 | set(CMAKE_SYSTEM_PROCESSOR "AMD64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "MinGW Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCInformation.cmake" 11 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCXXInformation.cmake" 12 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" 13 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeCommonLanguageInclude.cmake" 14 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 15 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeFindCodeBlocks.cmake" 16 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeGenericSystem.cmake" 17 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeInitializeConfigs.cmake" 18 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeLanguageInformation.cmake" 19 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeRCInformation.cmake" 20 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInformation.cmake" 21 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/CMakeSystemSpecificInitialize.cmake" 22 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/CMakeCommonCompilerMacros.cmake" 23 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-C.cmake" 24 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU-CXX.cmake" 25 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Compiler/GNU.cmake" 26 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Internal/CMakeCheckCompilerFlag.cmake" 27 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C-ABI.cmake" 28 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-C.cmake" 29 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX-ABI.cmake" 30 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU-CXX.cmake" 31 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-GNU.cmake" 32 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows-windres.cmake" 33 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/Windows.cmake" 34 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/Platform/WindowsPaths.cmake" 35 | "D:/Program Files/JetBrains/CLion 2020.1.1/bin/cmake/win/share/cmake-3.16/Modules/ProcessorCount.cmake" 36 | "../CMakeLists.txt" 37 | "CMakeFiles/3.16.5/CMakeCCompiler.cmake" 38 | "CMakeFiles/3.16.5/CMakeCXXCompiler.cmake" 39 | "CMakeFiles/3.16.5/CMakeRCCompiler.cmake" 40 | "CMakeFiles/3.16.5/CMakeSystem.cmake" 41 | ) 42 | 43 | # The corresponding makefile is: 44 | set(CMAKE_MAKEFILE_OUTPUTS 45 | "Makefile" 46 | "CMakeFiles/cmake.check_cache" 47 | ) 48 | 49 | # Byproducts of CMake generate step: 50 | set(CMAKE_MAKEFILE_PRODUCTS 51 | "CMakeFiles/CMakeDirectoryInformation.cmake" 52 | ) 53 | 54 | # Dependency information for all targets: 55 | set(CMAKE_DEPEND_INFO_FILES 56 | "CMakeFiles/simulinkwave.dir/DependInfo.cmake" 57 | ) 58 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir 2 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug/CMakeFiles/rebuild_cache.dir 4 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: w64 3.4 (local)@D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64 2 | Options: 3 | 4 | Options: -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - MinGW Makefiles" F:\WorkStation\QT_In_Github\qribbonStudy\simulinkwave 2 | -- Configuring done 3 | -- Generating done 4 | -- Build files have been written to: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug 5 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkwave/cmake-build-debug/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/CXX.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/main.cpp 10 | stddef.h 11 | - 12 | stdio.h 13 | - 14 | wave.h 15 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave.h 16 | rtwtypes.h 17 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtwtypes.h 18 | iostream 19 | - 20 | 21 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_continuous.h 22 | tmwtypes.h 23 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/tmwtypes.h 24 | rtwtypes.h 25 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtwtypes.h 26 | 27 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_solver.h 28 | rtw_continuous.h 29 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_continuous.h 30 | 31 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtwtypes.h 32 | 33 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave.h 34 | cmath 35 | - 36 | cstring 37 | - 38 | rtwtypes.h 39 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtwtypes.h 40 | rtw_continuous.h 41 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_continuous.h 42 | rtw_solver.h 43 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_solver.h 44 | wave_types.h 45 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave_types.h 46 | 47 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave_types.h 48 | 49 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "CXX" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_CXX 7 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/main.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/main.cpp.obj" 8 | "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave.cpp" "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/wave.cpp.obj" 9 | ) 10 | set(CMAKE_CXX_COMPILER_ID "GNU") 11 | 12 | # The include file search paths: 13 | set(CMAKE_CXX_TARGET_INCLUDE_PATH 14 | "../." 15 | ) 16 | 17 | # Targets to which this target links. 18 | set(CMAKE_TARGET_LINKED_INFO_FILES 19 | ) 20 | 21 | # Fortran module output directory. 22 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 23 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/simulinkwave.dir/main.cpp.obj" 3 | "CMakeFiles/simulinkwave.dir/wave.cpp.obj" 4 | "libsimulinkwave.dll.a" 5 | "simulinkwave.exe" 6 | "simulinkwave.exe.manifest" 7 | "simulinkwave.pdb" 8 | ) 9 | 10 | # Per-language clean rules from dependency scanning. 11 | foreach(lang CXX) 12 | include(CMakeFiles/simulinkwave.dir/cmake_clean_${lang}.cmake OPTIONAL) 13 | endforeach() 14 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkwave.dir/main.cpp.obj 5 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/main.cpp 6 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_continuous.h 7 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_solver.h 8 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtwtypes.h 9 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave.h 10 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave_types.h 11 | CMakeFiles/simulinkwave.dir/wave.cpp.obj 12 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_continuous.h 13 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtw_solver.h 14 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/rtwtypes.h 15 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave.cpp 16 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave.h 17 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave_private.h 18 | F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/wave_types.h 19 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | CMakeFiles/simulinkwave.dir/main.cpp.obj: ../main.cpp 5 | CMakeFiles/simulinkwave.dir/main.cpp.obj: ../rtw_continuous.h 6 | CMakeFiles/simulinkwave.dir/main.cpp.obj: ../rtw_solver.h 7 | CMakeFiles/simulinkwave.dir/main.cpp.obj: ../rtwtypes.h 8 | CMakeFiles/simulinkwave.dir/main.cpp.obj: ../wave.h 9 | CMakeFiles/simulinkwave.dir/main.cpp.obj: ../wave_types.h 10 | 11 | CMakeFiles/simulinkwave.dir/wave.cpp.obj: ../rtw_continuous.h 12 | CMakeFiles/simulinkwave.dir/wave.cpp.obj: ../rtw_solver.h 13 | CMakeFiles/simulinkwave.dir/wave.cpp.obj: ../rtwtypes.h 14 | CMakeFiles/simulinkwave.dir/wave.cpp.obj: ../wave.cpp 15 | CMakeFiles/simulinkwave.dir/wave.cpp.obj: ../wave.h 16 | CMakeFiles/simulinkwave.dir/wave.cpp.obj: ../wave_private.h 17 | CMakeFiles/simulinkwave.dir/wave.cpp.obj: ../wave_types.h 18 | 19 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "MinGW Makefiles" Generator, CMake Version 3.16 3 | 4 | # compile CXX with D:/mingw-w64/x86_64-4.9.2-win32-seh-rt_v3-rev1/mingw64/bin/g++.exe 5 | CXX_FLAGS = -g -std=gnu++14 6 | 7 | CXX_DEFINES = 8 | 9 | CXX_INCLUDES = @CMakeFiles/simulinkwave.dir/includes_CXX.rsp 10 | 11 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/includes_CXX.rsp: -------------------------------------------------------------------------------- 1 | -IF:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/. 2 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/link.txt: -------------------------------------------------------------------------------- 1 | "D:\Program Files\JetBrains\CLion 2020.1.1\bin\cmake\win\bin\cmake.exe" -E remove -f CMakeFiles\simulinkwave.dir/objects.a 2 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\ar.exe cr CMakeFiles\simulinkwave.dir/objects.a @CMakeFiles\simulinkwave.dir\objects1.rsp 3 | D:\mingw-w64\x86_64-4.9.2-win32-seh-rt_v3-rev1\mingw64\bin\g++.exe -g -Wl,--whole-archive CMakeFiles\simulinkwave.dir/objects.a -Wl,--no-whole-archive -o simulinkwave.exe -Wl,--out-implib,libsimulinkwave.dll.a -Wl,--major-image-version,0,--minor-image-version,0 @CMakeFiles\simulinkwave.dir\linklibs.rsp 4 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/linklibs.rsp: -------------------------------------------------------------------------------- 1 | -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 2 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/objects1.rsp: -------------------------------------------------------------------------------- 1 | CMakeFiles/simulinkwave.dir/main.cpp.obj CMakeFiles/simulinkwave.dir/wave.cpp.obj 2 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/CMakeFiles/simulinkwave.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | CMAKE_PROGRESS_3 = 3 4 | 5 | -------------------------------------------------------------------------------- /simulinkwave/cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "C:/Program Files (x86)/simulinkwave") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | # Is this installation the result of a crosscompile? 31 | if(NOT DEFINED CMAKE_CROSSCOMPILING) 32 | set(CMAKE_CROSSCOMPILING "FALSE") 33 | endif() 34 | 35 | if(CMAKE_INSTALL_COMPONENT) 36 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 37 | else() 38 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 39 | endif() 40 | 41 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 42 | "${CMAKE_INSTALL_MANIFEST_FILES}") 43 | file(WRITE "F:/WorkStation/QT_In_Github/qribbonStudy/simulinkwave/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 44 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 45 | -------------------------------------------------------------------------------- /simulinkwave/ert_main.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: ert_main.cpp 7 | // 8 | // Code generated for Simulink model 'wave'. 9 | // 10 | // Model version : 1.0 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 21:46:40 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: Intel->x86-64 (Windows64) 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #include 20 | #include // This ert_main.c example uses printf/fflush 21 | #include "wave.h" // Model's header file 22 | #include "rtwtypes.h" 23 | 24 | static waveModelClass wave_Obj; // Instance of model class 25 | 26 | // 27 | // Associating rt_OneStep with a real-time clock or interrupt service routine 28 | // is what makes the generated code "real-time". The function rt_OneStep is 29 | // always associated with the base rate of the model. Subrates are managed 30 | // by the base rate from inside the generated code. Enabling/disabling 31 | // interrupts and floating point context switches are target specific. This 32 | // example code indicates where these should take place relative to executing 33 | // the generated code step function. Overrun behavior should be tailored to 34 | // your application needs. This example simply sets an error status in the 35 | // real-time model and returns from rt_OneStep. 36 | // 37 | void rt_OneStep(void); 38 | void rt_OneStep(void) 39 | { 40 | static boolean_T OverrunFlag = false; 41 | 42 | // Disable interrupts here 43 | 44 | // Check for overrun 45 | if (OverrunFlag) { 46 | rtmSetErrorStatus(wave_Obj.getRTM(), "Overrun"); 47 | return; 48 | } 49 | 50 | OverrunFlag = true; 51 | 52 | // Save FPU context here (if necessary) 53 | // Re-enable timer or interrupt here 54 | // Set model inputs here 55 | 56 | // Step the model for base rate 57 | wave_Obj.step(); 58 | 59 | // Get model outputs here 60 | 61 | // Indicate task complete 62 | OverrunFlag = false; 63 | 64 | // Disable interrupts here 65 | // Restore FPU context here (if necessary) 66 | // Enable interrupts here 67 | } 68 | 69 | // 70 | // The example "main" function illustrates what is required by your 71 | // application code to initialize, execute, and terminate the generated code. 72 | // Attaching rt_OneStep to a real-time clock is target specific. This example 73 | // illustrates how you do this relative to initializing the model. 74 | // 75 | int_T main(int_T argc, const char *argv[]) 76 | { 77 | // Unused arguments 78 | (void)(argc); 79 | (void)(argv); 80 | 81 | // Initialize model 82 | wave_Obj.initialize(); 83 | 84 | // Attach rt_OneStep to a timer or interrupt service routine with 85 | // period 0.02 seconds (the model's base sample time) here. The 86 | // call syntax for rt_OneStep is 87 | // 88 | // rt_OneStep(); 89 | 90 | printf("Warning: The simulation will run forever. " 91 | "Generated ERT main won't simulate model step behavior. " 92 | "To change this behavior select the 'MAT-file logging' option.\n"); 93 | fflush((NULL)); 94 | while (rtmGetErrorStatus(wave_Obj.getRTM()) == (NULL)) { 95 | // Perform other application tasks here 96 | } 97 | 98 | // Disable rt_OneStep() here 99 | 100 | // Terminate model 101 | wave_Obj.terminate(); 102 | return 0; 103 | } 104 | 105 | // 106 | // File trailer for generated code. 107 | // 108 | // [EOF] 109 | // 110 | -------------------------------------------------------------------------------- /simulinkwave/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/simulinkwave/main.cpp -------------------------------------------------------------------------------- /simulinkwave/simulinkwave.pri: -------------------------------------------------------------------------------- 1 | INCLUDEPATH += $$PWD 2 | 3 | SOURCES +=$$PWD/wave.cpp\ 4 | 5 | HEADERS +=$$PWD/rtw_solver.h\ 6 | $$PWD/rtwtypes.h\ 7 | $$PWD/rtw_continuous.h\ 8 | $$PWD/wave_types.h\ 9 | $$PWD/wave_private.h\ 10 | $$PWD/wave.h 11 | -------------------------------------------------------------------------------- /simulinkwave/wave_private.h: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: wave_private.h 7 | // 8 | // Code generated for Simulink model 'wave'. 9 | // 10 | // Model version : 1.0 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 21:46:40 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: Intel->x86-64 (Windows64) 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_wave_private_h_ 20 | #define RTW_HEADER_wave_private_h_ 21 | #include "rtwtypes.h" 22 | 23 | // Private macros used by the generated code to access rtModel 24 | #ifndef rtmIsMajorTimeStep 25 | # define rtmIsMajorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MAJOR_TIME_STEP) 26 | #endif 27 | 28 | #ifndef rtmIsMinorTimeStep 29 | # define rtmIsMinorTimeStep(rtm) (((rtm)->Timing.simTimeStep) == MINOR_TIME_STEP) 30 | #endif 31 | 32 | #ifndef rtmSetTPtr 33 | # define rtmSetTPtr(rtm, val) ((rtm)->Timing.t = (val)) 34 | #endif 35 | #endif // RTW_HEADER_wave_private_h_ 36 | 37 | // 38 | // File trailer for generated code. 39 | // 40 | // [EOF] 41 | // 42 | -------------------------------------------------------------------------------- /simulinkwave/wave_types.h: -------------------------------------------------------------------------------- 1 | // 2 | // Academic License - for use in teaching, academic research, and meeting 3 | // course requirements at degree granting institutions only. Not for 4 | // government, commercial, or other organizational use. 5 | // 6 | // File: wave_types.h 7 | // 8 | // Code generated for Simulink model 'wave'. 9 | // 10 | // Model version : 1.0 11 | // Simulink Coder version : 9.2 (R2019b) 18-Jul-2019 12 | // C/C++ source code generated on : Sat Jun 6 21:46:40 2020 13 | // 14 | // Target selection: ert.tlc 15 | // Embedded hardware selection: Intel->x86-64 (Windows64) 16 | // Code generation objectives: Unspecified 17 | // Validation result: Not run 18 | // 19 | #ifndef RTW_HEADER_wave_types_h_ 20 | #define RTW_HEADER_wave_types_h_ 21 | 22 | // Forward declaration for rtModel 23 | typedef struct tag_RTM_wave_T RT_MODEL_wave_T; 24 | 25 | #endif // RTW_HEADER_wave_types_h_ 26 | 27 | // 28 | // File trailer for generated code. 29 | // 30 | // [EOF] 31 | // 32 | -------------------------------------------------------------------------------- /文档/基于Qt的直流电机转速的开环标定与闭环PID控制.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wdther/MeasurementAndControl_Qt/84f1d02ffeab20c67e39b0ba27ed6e0b8a13bab3/文档/基于Qt的直流电机转速的开环标定与闭环PID控制.pdf --------------------------------------------------------------------------------