Browse Source

步进电机支持单指令往复运动

master
zhaohe 1 year ago
parent
commit
1182f9b4e8
  1. 4
      sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp
  2. 2
      usrc/project_configs.h

4
sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp

@ -480,8 +480,8 @@ int32_t StepMotorCtrlModule::step_motor_easy_reciprocating_motion(int32_t startp
int32_t ecode = check_befor_run(); int32_t ecode = check_befor_run();
if (ecode != 0) return ecode; if (ecode != 0) return ecode;
int32_t x_startpos;
int32_t x_endpos;
int32_t x_startpos = startpos;
int32_t x_endpos = endpos;
int32_t x_beginpos; int32_t x_beginpos;
getnowpos(x_beginpos); getnowpos(x_beginpos);

2
usrc/project_configs.h

@ -1,5 +1,5 @@
#pragma once #pragma once
#define PC_VERSION 504
#define PC_VERSION 505
#define PC_MANUFACTURER "http://www.iflytop.com/" #define PC_MANUFACTURER "http://www.iflytop.com/"
#define PC_PROJECT_NAME "a8000_subboard" #define PC_PROJECT_NAME "a8000_subboard"
#define PC_IFLYTOP_ENABLE_OS 1 #define PC_IFLYTOP_ENABLE_OS 1

Loading…
Cancel
Save