Browse Source

V110

moveToEndTestVersion
zhaohe 11 months ago
parent
commit
345c43f5e9
  1. 3
      README.md
  2. 2
      stm32components
  3. 3
      usrc/module/tmc_motor_group.cpp
  4. 2
      usrc/project_configs.h

3
README.md

@ -15,6 +15,9 @@
1.修复电机错误的停止方式
2.将所有依赖更新到最新版本
3.支持外置过氧化氢传感器
V110:
1. 修改电机旋转使用接口
2. 增加电机refreshcfg接口
```

2
stm32components

@ -1 +1 @@
Subproject commit c3297878099d6ab606c91c0cd29c37ebadcd035a
Subproject commit 09a2e4d56041cc988ddb766185f323ede4d713b4

3
usrc/module/tmc_motor_group.cpp

@ -180,8 +180,9 @@ void TmcMotorGroup::fn_pump_rotate(ProcessContext* cxt) {
ZLOGI(TAG, "pump_rotate: %d %d", GET_PARAM(0), velocity);
motor(GET_PARAM(0))->enable(false);
motor(GET_PARAM(0))->refreshcfg();
motor(GET_PARAM(0))->enable(true);
motor(GET_PARAM(0))->moveToEnd(velocity > 0 ? 1 : -1, abs(velocity));
motor(GET_PARAM(0))->rotate(velocity);
zcanbus_send_ack(cxt->packet, NULL, 0);
motorErrorFlag_set(GET_PARAM(0), false);

2
usrc/project_configs.h

@ -15,7 +15,7 @@
* @brief
*
*/
#define SOFTWARE_VERSION 106 // 软件版本
#define SOFTWARE_VERSION 110 // 软件版本
#define HARDWARE_VERSION 1 // 硬件版本
#define PROJECT "transmit_disinfection_micro_re" // 工程名称
#define SN_HEADER "SN" // SN号前缀

Loading…
Cancel
Save