Browse Source

update

master
zhaohe 1 year ago
parent
commit
d54fe7dfac
  1. 2
      a8000_protocol
  2. 5
      src/tab/step_motor_ctrl_tab.cpp

2
a8000_protocol

@ -1 +1 @@
Subproject commit e2eaf4ce208aaa149127d2bf8fe41434fd63fd08
Subproject commit 401f316f91ca1b0206f257a99fe0a727665c5220

5
src/tab/step_motor_ctrl_tab.cpp

@ -95,6 +95,11 @@ void StepMotorCtrlTab::construct(QTabWidget *fathertab) {
box->newFunc("相对移动", {"distance"}, [this](int argn, const char **args) { ICM->step_motor_easy_move_by(getDeviceId(), atoi(args[0])); });
box->newFunc("移动到", {"position"}, [this](int argn, const char **args) { ICM->step_motor_easy_move_to(getDeviceId(), atoi(args[0])); });
box->newFunc("移动到IO", {"ioindex", "direction"}, [this](int argn, const char **args) { ICM->step_motor_easy_move_to_io(getDeviceId(), atoi(args[0]), atoi(args[1])); });
box->newFunc("往复运动", {"startPos", "endPos","times"}, [this](int argn, const char **args) {
ICM->callcmd3(getDeviceId(), kstep_motor_easy_reciprocating_motion, atoi(args[0]), atoi(args[1]), atoi(args[2]));
});
}
{

Loading…
Cancel
Save