# forceSensorController **Repository Path**: hf_zhao/force-sensor-controller ## Basic Information - **Project Name**: forceSensorController - **Description**: This is an upper computer software, it can receive the measurement data of the six-dimensional force sensor through the serial port, monitor the data in the upper computer and draw real-time curves. - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-07-23 - **Last Updated**: 2024-06-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: Qt ## README # forceSensorController #### Introduction This is an upper computer software, it can receive the measurement data of the six-dimensional force sensor through the serial port, monitor the data in the upper computer and draw real-time curves. #### Directory Structure ```txt force-sensor-controller ├── 3rdparty // 第三方模块 │ └── QCustomPlot // QCustomPlot 绘图模块 │ ├── qcustomplot.cpp │ └── qcustomplot.h ├── README.md ├── forceSensorController.pro ├── forceSensorController_resource.rc ├── images // 资源文件 │ ├── icon.ico │ ├── res.qrc │ ├── reset.svg │ ├── send.svg │ └── update.svg ├── main.cpp ├── mainwindow.cpp ├── mainwindow.h ├── mainwindow.ui ├── res.qrc ├── src │ ├── Decoder // 解码线程 │ │ ├── decoder.cpp │ │ └── decoder.h │ ├── QSerialCtl // 串口通信线程 │ │ ├── qserialctl.cpp │ │ └── qserialctl.h │ ├── QXlsxCtl // excel 线程 │ │ ├── qxlsxctl.cpp │ │ └── qxlsxctl.h │ └── Utils │ └── params.h └── ui_mainwindow.h ``` #### Software Architecture ![程序逻辑](https://gitee.com/hf_zhao/img/raw/master/software.png) - 主线程,即 ui 线程,负责将串口接收数据实时打印在「数据监测」窗口,同时负责将解码后的力传感器数据以指定帧率实时绘制动态曲线 - 串口接收子线程,负责接收六维力传感器发送的数据 - 解码子线程,负责将串口收到的数据帧进行解码 - 数据输出保存子线程,负责将解码后的数据及时写入 .xlsx 文件进行保存 #### Installation Tutorial If you have git, enter the following code. ``` git clone git@gitee.com:hf_zhao/force-sensor-controller.git ``` or you can download (.zip) directly. #### Instructions Your Qt needs to meet the following conditions to run the project correctly. 1. Qt Version ≥ 6.2.4 2. Qt Additional Libraries:ActiveX、QSerial Port