agv-control/Plugin/KcCtrl/KcCtrl.h
2025-06-09 09:09:25 +08:00

58 lines
1.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Vcs-Client.h : PROJECT_NAME 应用程序的主头文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif
#include "resource.h" // 主符号
#include "CCEXPipeLib.h"
#define WM_MSG_ROBOT_TO_MAIN WM_USER+2000
// CKcCtrlApp:
// 有关此类的实现,请参阅 Vcs-Client.cpp
//
class CKcCtrlApp : public CWinApp
{
public:
CKcCtrlApp();
// 重写
public:
virtual BOOL InitInstance();
public:
//从配置文件获取控制信息包括IP地址端口协议授权码
void GetCtrlServerInfo();
//构建请求报文头
void BuildMessageHeader();
public:
CString m_strModulePath; //模块所在路径
CString m_strControllerIp; //控制器IP地址
int m_nControllerPort; //控制器端口号
unsigned char m_acAuthCoce[16]; //协议授权码16个字节
int m_nReqPointId; //记录车辆请求点位置点ID
int m_nReqPointType; //记录车辆请求点位置点类型 1:取请求, 2:放请求
int m_nCargoStatus; //载货状态
// 实现
CString SendMsg2Platform(CString strReceiver, int nMsgType, Json::Value param = NULL);
void ChangeGuideType(int nType);
DECLARE_MESSAGE_MAP()
};
extern CKcCtrlApp theApp;
extern CCEXPipeClientBase* g_pstPipeClient;