Browse Source

update

master
zhaohe 1 year ago
parent
commit
ce744c8fd7
  1. 2
      a8000_protocol
  2. 20
      src/tab/module_opera_tab.cpp

2
a8000_protocol

@ -1 +1 @@
Subproject commit 5ed47307b153a256e90fc5031b58ff65102a7f03
Subproject commit a53eb99bce9e1793fe16cb7f7c2de1d7d3422e8f

20
src/tab/module_opera_tab.cpp

@ -17,17 +17,12 @@ extern Ui::MainWindow *main_ui;
extern int getDeviceId();
static const char *module_type2_str(int id) {
switch (id) {
case kuniversal_module:
return "通用模块";
case khbot_module:
return "hbot模块";
case kmotor_module:
return "电机控制";
case ktemperature_ctrl_module:
return "水冷温度控制";
return "温度控制";
case kfan_ctrl_module:
return "风扇控制";
case kcode_scaner:
@ -36,17 +31,18 @@ static const char *module_type2_str(int id) {
return "移液体枪控制";
case ka8000_optical_module:
return "a8000光学模组";
case klaster_scaner_module:
return "a8000光学模组";
//
case ktmc_step_motor:
return "步进电机";
case kmini_servo_motor_module:
return "舵机";
case kboard:
return "板子扩展";
return "板子";
case ka8000_idcard_reader:
return "id卡读卡器";
case ka8000_plate_code_scaner:
return "反应板条扫码器";
default:
return "未知模块";
return "Unkown";
}
}
@ -77,7 +73,7 @@ void ModuleOperaTab::construct(QWidget *parent) {
if (i % 10 == 0) {
ZQUI::ins()->ishow("");
}
ZQUI::ins()->ishow("module :%d isOnline type:%10s v(%d)", i, module_type2_str(moduleType), moduleVersion);
ZQUI::ins()->ishow("module :%d isOnline type:%10s(%d) v(%d)", i, module_type2_str(moduleType), moduleType, moduleVersion);
} catch (const zexception &e) {
if (e.ecode() != ke_overtime) {
ZQUI::ins()->ishow("%s", e.what());

Loading…
Cancel
Save