1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
towercollisionsetting.h 2.24 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-03 09:38 . 3568ui base
#ifndef TOWERCOLLISIONSETTING_H
#define TOWERCOLLISIONSETTING_H
#include <QWidget>
#include <QtMath>
#include "bblistscreen.h"
#include "datadictionary.h"
#include "toweranalog.h"
namespace Ui {
class TowerCollisionSetting;
}
class TowerCollisionSetting : public QWidget
{
Q_OBJECT
public:
explicit TowerCollisionSetting(QWidget *parent = nullptr);
~TowerCollisionSetting();
typedef struct {
quint32 auiDevId;
double afArmLength;
double afRelativeDistance;
quint32 auiRelativeAngle;
quint32 auiCurrentAngle;
// double afRelativeHeight;
quint32 auiTowerId;
double afShowArmLength;
quint32 auiShowX;
quint32 auiShowY;
}MultiCraneInfo_t;
protected:
void showEvent(QShowEvent *event);
private slots:
void on_QuiteButton_clicked();
void MultipleParamDataChange(MultipleParamDataIndex_t);
void MonitorRtDataChange(MonitorRtDataIndex_t);
void DevParamDataChange(DevParamDataIndex_t index);
void on_UpButton_clicked();
void on_DownButton_clicked();
void on_TowerId_returnPressed();
void on_DevId_returnPressed();
void on_RelativeDistance_returnPressed();
void on_RelativeAngle_returnPressed();
void on_RelativeHeight_returnPressed();
void on_ArmLength_returnPressed();
void on_SearchButton_clicked();
private:
void GetMultipCraneInfo();
void DisplayOverLook();
void FixAreaNum(uint32_t index);
void SetAllAlias(uint32_t index);
void SetAreaNum(uint32_t index);
void ShowTowerId();
void ShowDevId();
void ShowRelativeDistance();
void ShowRelativeAngle();
void ShowRelativeHeight();
void ShowArmLength();
void SetTowerId(QString V);
void SetDevId(QString V);
void SetRelativeDistance(QString V);
void SetRelativeAngle(QString V);
void SetRelativeHeight(QString V);
void SetArmLength(QString V);
void ShowCurHeight();
void ShowCurScope();
void ShowCurAngle();
private:
Ui::TowerCollisionSetting *ui;
DataDictionary *m_DataDictionary;
uint32_t m_AreaIndex;
TowerAnalog *m_TowerAnalog[9];
MultiCraneInfo_t m_CraneInfo[9];
BBListScreen *m_BBListScreen;
};
#endif // TOWERCOLLISIONSETTING_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助