diff --git a/a8000_protocol b/a8000_protocol index e2eaf4c..401f316 160000 --- a/a8000_protocol +++ b/a8000_protocol @@ -1 +1 @@ -Subproject commit e2eaf4ce208aaa149127d2bf8fe41434fd63fd08 +Subproject commit 401f316f91ca1b0206f257a99fe0a727665c5220 diff --git a/src/tab/step_motor_ctrl_tab.cpp b/src/tab/step_motor_ctrl_tab.cpp index be98449..7c07751 100644 --- a/src/tab/step_motor_ctrl_tab.cpp +++ b/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])); + }); + + } {