Browse Source

add step motor_ctrl module

master
zhaohe 2 years ago
parent
commit
22748a617b
  1. 2
      components/step_motor_ctrl_module/step_motor_ctrl_module.cpp
  2. 2
      components/step_motor_ctrl_module/step_motor_ctrl_module.hpp

2
components/step_motor_ctrl_module/step_motor_ctrl_module.cpp

@ -204,7 +204,7 @@ int32_t StepMotorCtrlModule::move_to_zero_with_calibrate(int32_t nowx, function<
return 0;
}
int32_t StepMotorCtrlModule::rotate(uint8_t direction, int32_t velocity, int32_t acc) { return 0; }
// int32_t StepMotorCtrlModule::rotate(uint8_t direction, int32_t velocity, int32_t acc) { return 0; }
/*******************************************************************************
* READ *

2
components/step_motor_ctrl_module/step_motor_ctrl_module.hpp

@ -66,7 +66,7 @@ class StepMotorCtrlModule {
int32_t move_by(int32_t dpos, function<void(int32_t exec_status, int32_t topos)> status_cb);
int32_t move_to_zero(function<void(int32_t exec_status, int32_t dpos)> status_cb);
int32_t move_to_zero_with_calibrate(int32_t nowpos, function<void(int32_t exec_status, int32_t zero_shift_pos)> status_cb);
int32_t rotate(uint8_t direction, int32_t velocity, int32_t acc);
// int32_t rotate(uint8_t direction, int32_t velocity, int32_t acc);
/*******************************************************************************
* READ *

Loading…
Cancel
Save