agv-control/Plugin/Driver/PluginDriver.h
CaiXiang 4be62027c6 引入PID控制器并更新相关功能
在多个文件中进行了重要更改:
- 更新 `Driver.rc` 和 `resource.h` 的二进制文件。
- 在 `Driver.vcxproj` 中添加了多线程调试DLL的运行库设置。
- 引入 `pid_controller.h` 和 `pid_controller.cpp`,实现PID控制器功能。
- 在 `DriverMainDlg.cpp` 中添加了对PID控制的支持,包括新成员变量和方法。
- 增加了自动发送和车辆位置更新的功能。
- 在 `Protocol.h` 中添加了新的消息类型 `GUIDE_FAST`。
2025-06-16 11:16:20 +08:00

67 lines
1.2 KiB
C++

// 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
// CVcsClientApp:
// 有关此类的实现,请参阅 Vcs-Client.cpp
//
#define MAX_GUIDE_LABEL 50
class CPluginDriver : public CWinApp
{
public:
CPluginDriver();
// 重写
public:
virtual BOOL InitInstance();
public:
void ReadConfigFromIni();
public:
CString m_strModulePath;
ST_CAN_DEVICE m_stCanDevice;
ST_GUIDE_LABEL m_GuideLabels[MAX_GUIDE_LABEL];
int m_nLabelCount;
int m_nRoadwayId;
int m_nRoadwayLen;
CString m_strRoadwayName;
int m_nX;
int m_nY;
float m_fAngle;
int m_nTag;
float m_fVelCal;
float m_fAngCal;
float m_fAngleForFast;
float m_fVelCalForFast;
float m_fAngCalForFast;
// 实现
CString SendMsg2Platform(CString strReceiver, int nMsgType, Json::Value param = NULL);
DECLARE_MESSAGE_MAP()
};
extern CPluginDriver theApp;
extern CCEXPipeClientBase* g_pstPipeClient;