1 Star 0 Fork 0

glm-001/shenntoufromgithub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
const_def.h 2.94 KB
一键复制 编辑 原始数据 按行查看 历史
glm-001 提交于 2024-09-13 10:35 +08:00 . resetcodes
#ifndef CONST_DEF_H
#define CONST_DEF_H
#include <QtCore/qglobal.h>
#include <QtCore/QVariant>
#include <QUuid>
#include <QPoint>
#include <QVector>
//#include <QNetworkInterface>
#include <QThread>
#include <QMutexLocker>
#include <QMutex>
#include <QDebug>
#include <QFileDialog>
#include <QInputDialog>
#include <QEventLoop>
#include <QShowEvent>
#include <QTimer>
#include <QElapsedTimer>
#include <QMetaEnum>
#include <QDateTime>
#include <QFile>
//#include <QSerialPort>
//#include <QSerialPortInfo>
#include <QJsonParseError>
#include <QJsonArray>
#include <QJsonObject>
#include <QMessageBox>
#include <QScreen>
#include <QKeyEvent>
#include <QTreeView>
#include <QStandardItemModel>
#include <QTreeWidgetItem>
#include <QScrollBar>
//#include <QTcpSocket>
//#include <QTcpServer>
//#include <QHostAddress>
//#include <QModbusDataUnit>
//#include <QModbusTcpClient>
//#include <QModbusTcpServer>
//#include <QModbusRtuSerialMaster>
#include <QProgressBar>
#include <QBitmap>
// #include "singleton.h"
//#include "const_error.h"
//#include "const_str.h"
//#include <opencv2/opencv.hpp>
// #include "util.h"
#define LOGPATH "/log"
#define TESTTABLE "/table"
#define DATABASE_TYPE "QMYSQL"
#define DATABASE_IP "127.0.0.1"
#define DATABASE_PORT 3306
#define DATABASE_NAME "shentou_db"
//#define DATABASE_USERNAME "czsw"
#define DATABASE_PASSWORD "shentou123"
#define DB_CONFIG_FILE "/data/device/db.json"
// 数据记录页面
#define RECORDS_VIEW_JSON "/data/ui/RecordsView.json"
#define RES_RECORDS_VIEW_JSON "/data/ui/ResRecordsView.json"
//软件设置路径
#define SOFT_CONFIG "/data/settings/softsetting.ini"
//mdb模块
#define MDBUNIT1 "/data/device/mdbunit1.json"
#define MDBUNIT2 "/data/device/mdbunit2.json"
#define MDBUNIT3 "/data/device/mdbunit3.json"
#define MDBUNIT4 "/data/device/mdbunit4.json"
#define DEVICEPATH "/DATA/device/";
//address
#define ALLADDRESS "/data/device/alladdr.json"
//experiment settings
#define EXPERMENTPARAMS "/data/device/expermentparams.json";
//experiment settings
#define ALLDEVSINSTALLED "/data/device/alldevsinstalled.json";//experiment settings
#define COEFFICIENTS "/data/device/cofficient.json";
//for excel
#define EXCELTEMPLATE "/data/excel/template.xlsx"
#define TARGETPATH "/table"
#define TEMPERSENSORLOCATION 16
#define WASHVALLOCATION 1
#define RELAY0 0
#define RELAY1 1
#define RELAY2 2
#define RELAY3 3
struct TEMPERCONSTPARAMS{
QMap<QString,int>bauds;
};
struct RAINSNOWCONSTPARAMS{
QMap<QString,int>bauds;
};
struct PRESSURECONSTPARAMS{
QMap<QString,int>bauds;
};
struct RELAYCONSTPARAMS{
QMap<QString,int>bauds;
};
#define MAX_LEVEL_TIME 10 //水位横轴范围
#define MAX_LEVEL 2.5 //水位纵轴范围
#define SETTINGCODE "admin@123"
#define WASHTIMEUPLIMIT 180
#define WASHTIMELOWLIMIT 1
#define WASHINTERVAL 5*60*1000
#define WASHDELAY 1 //S
#define RESINTERVAL 50 //min
#define PRESSUREREADNUMAFTERFILL 50
#define AllWATEROUTCOUNT 80
#endif // CONST_DEF_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/glm-001/permeatefromgithub.git
git@gitee.com:glm-001/permeatefromgithub.git
glm-001
permeatefromgithub
shenntoufromgithub
main

搜索帮助