|
|
@ -302,7 +302,7 @@ void TabBuilder::buildPSBusTab(const char *tabname, int boardid) { |
|
|
|
void TabBuilder::buildProportionalTab(const char *tabname, int boardid) { |
|
|
|
ZQVTabPage *tab = getTab(tabname); |
|
|
|
ZQFunctionListBox *box = new ZQFunctionListBox(tab, "比例阀", 4); |
|
|
|
box->newFunc("设置比例阀", {"valveId", "valveValue"}, [this, boardid](int argn, const char **args) { //
|
|
|
|
box->newFunc("设置比例阀", {"valveId(1->255)", "valveValue(0->255)"}, [this, boardid](int argn, const char **args) { //
|
|
|
|
CAN_MASTER->proportionalSetValve(boardid, atoi(args[0]), atoi(args[1])); |
|
|
|
}); |
|
|
|
box->newFunc("读取比例阀位置", {}, [this, boardid](int argn, const char **args) { //
|
|
|
@ -317,17 +317,19 @@ void TabBuilder::buildProportionalTab(const char *tabname, int boardid) { |
|
|
|
void TabBuilder::buildAirTightnessTestTab(const char *tabname, int boardid) { |
|
|
|
ZQVTabPage *tab = getTab(tabname); |
|
|
|
ZQFunctionListBox *box = new ZQFunctionListBox(tab, "气密性测试", 4); |
|
|
|
box->newSubButton("气密性测试-封闭通道", [this, boardid](int argn, const char **args) { //
|
|
|
|
CAN_MASTER->airTightnessTestCloseOffCh(boardid); |
|
|
|
box->newSubButton("消毒模式", [this, boardid](int argn, const char **args) { //
|
|
|
|
CAN_MASTER->getCanProtocolCom()->callcmd1(boardid, kfn_air_leak_test_set_mode, 0, DEFUALT_OVERTIME); |
|
|
|
}); |
|
|
|
|
|
|
|
box->newSubButton("气密性测试-释放通道", [this, boardid](int argn, const char **args) { //
|
|
|
|
CAN_MASTER->airTightnessTestOpenCh(boardid); |
|
|
|
box->newSubButton("打气模式", [this, boardid](int argn, const char **args) { //
|
|
|
|
CAN_MASTER->getCanProtocolCom()->callcmd1(boardid, kfn_air_leak_test_set_mode, 1, DEFUALT_OVERTIME); |
|
|
|
}); |
|
|
|
box->newSubButton("气压测试模式", [this, boardid](int argn, const char **args) { //
|
|
|
|
CAN_MASTER->getCanProtocolCom()->callcmd1(boardid, kfn_air_leak_test_set_mode, 2, DEFUALT_OVERTIME); |
|
|
|
}); |
|
|
|
box->newSubButtonEnd(); |
|
|
|
box->newSubButton("气密性测试-是否封闭", [this, boardid](int argn, const char **args) { //
|
|
|
|
int val = CAN_MASTER->airTightnessTestIsCutoff(boardid); |
|
|
|
ISHOW("val:%d", val); |
|
|
|
box->newSubButton("读取模式(0:消毒,1:打气,2:气压测试)", [this, boardid](int argn, const char **args) { //
|
|
|
|
shared_ptr<Receipt> receipt = CAN_MASTER->getCanProtocolCom()->callcmd0(boardid, kfn_air_leak_test_get_mode, DEFUALT_OVERTIME); |
|
|
|
ISHOW("val:%d", receipt->getContent(0)); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|