添加管控软件和相机的通讯
This commit is contained in:
@@ -5,6 +5,36 @@
|
||||
#include "../modbus/modbusconfig.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QMap>
|
||||
|
||||
struct VisionConfig
|
||||
{
|
||||
bool enabled = false;
|
||||
bool contractConfirmed = false;
|
||||
bool photoPoseReadyConfirmed = false;
|
||||
QString executablePath;
|
||||
QString ipcName = "ssp_visionguide_v1";
|
||||
int startupTimeoutMs = 15000;
|
||||
int initializeTimeoutMs = 60000;
|
||||
int requestTimeoutMs = 15000;
|
||||
int robotAckTimeoutMs = 10000;
|
||||
int photoPoseR = 40;
|
||||
int graspPoseR = 60;
|
||||
bool lowWordFirst = true;
|
||||
int robotReceivedCoil = -1;
|
||||
int photoRequestCoil = -1;
|
||||
int comparingCoil = -1;
|
||||
int comparisonErrorCoil = -1;
|
||||
int comparisonPassedCoil = -1;
|
||||
QString handshakeProtocol;
|
||||
QStringList writableSignals;
|
||||
QStringList actionNames;
|
||||
QMap<int, int> trayMap;
|
||||
|
||||
bool isValid(QString *error = nullptr) const;
|
||||
int visionTrayNo(int sspTrayNo) const;
|
||||
};
|
||||
|
||||
struct ProductionConfig
|
||||
{
|
||||
@@ -35,6 +65,7 @@ public:
|
||||
DbConfig databaseConfig() const;
|
||||
ModbusConfig modbusConfig() const;
|
||||
ProductionConfig productionConfig() const;
|
||||
VisionConfig visionConfig() const;
|
||||
bool simulationMode() const;
|
||||
bool productionEnabled() const;
|
||||
bool validate(QString *error = nullptr) const;
|
||||
@@ -50,6 +81,7 @@ private:
|
||||
DbConfig m_databaseConfig;
|
||||
ModbusConfig m_modbusConfig;
|
||||
ProductionConfig m_productionConfig;
|
||||
VisionConfig m_visionConfig;
|
||||
bool m_simulationMode;
|
||||
bool m_productionEnabled;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user