|
|
@ -59,8 +59,8 @@ void XYRobotTab::construct(QTabWidget *fathertab) { |
|
|
|
}); |
|
|
|
|
|
|
|
box->newFunc("设置位置", {"x", "y"}, [this](int argn, const char **args) { ICM->callcmd2(getDeviceId(), kxymotor_set_pos, atoi(args[0]), atoi(args[1])); }); |
|
|
|
box->newFunc("相对移动", {"dx", "dy", "velocity"}, [this](int argn, const char **args) { ICM->callcmd3(getDeviceId(), kxymotor_move_by, atoi(args[0]), atoi(args[1]), atoi(args[2])); }); |
|
|
|
box->newFunc("绝对移动", {"x", "y", "velocity"}, [this](int argn, const char **args) { ICM->callcmd3(getDeviceId(), kxymotor_move_to, atoi(args[0]), atoi(args[1]), atoi(args[2])); }); |
|
|
|
box->newFunc("相对移动", {"dx", "dy"}, [this](int argn, const char **args) { ICM->callcmd2(getDeviceId(), kxymotor_move_by, atoi(args[0]), atoi(args[1])); }); |
|
|
|
box->newFunc("绝对移动", {"x", "y"}, [this](int argn, const char **args) { ICM->callcmd2(getDeviceId(), kxymotor_move_to, atoi(args[0]), atoi(args[1])); }); |
|
|
|
box->newFunc("直接控制电机相对移动", {"motor1_dpos", "motor2_dpos"}, [this](int argn, const char **args) { ICM->callcmd2(getDeviceId(), kxymotor_motor_move_by_direct, atoi(args[0]), atoi(args[1])); }); |
|
|
|
|
|
|
|
box->newFunc("读取全部输入IO", {}, [this](int argn, const char **args) { |
|
|
@ -135,6 +135,9 @@ void XYRobotTab::construct(QTabWidget *fathertab) { |
|
|
|
tableBox->addReg("look_zero_edge_speed", kreg_xyrobot_look_zero_edge_speed, ZRegItem::krw | ZRegItem::kdec); |
|
|
|
tableBox->addReg("shift_x", kreg_xyrobot_shift_x, ZRegItem::krw | ZRegItem::kdec); |
|
|
|
tableBox->addReg("shift_y", kreg_xyrobot_shift_y, ZRegItem::krw | ZRegItem::kdec); |
|
|
|
tableBox->addReg("pos_devi_tolerance", kreg_xyrobot_pos_devi_tolerance, ZRegItem::krw | ZRegItem::kdec); |
|
|
|
tableBox->addReg("io_trigger_append_distance", kreg_xyrobot_io_trigger_append_distance, ZRegItem::krw | ZRegItem::kdec); |
|
|
|
|
|
|
|
tableBox->addReg("default_velocity", kreg_xyrobot_default_velocity, ZRegItem::krw | ZRegItem::kdec); |
|
|
|
|
|
|
|
tableBox->addSpacer(); |
|
|
|