Browse Source

修复 光学模组部分BUG

master
zhaohe 4 months ago
parent
commit
5d19ff3e0e
  1. 1
      sdk/components/mini_servo_motor/feite_servo_motor.cpp
  2. 2
      usrc/subboards/subboard90_optical_module/optical_module_v2.cpp

1
sdk/components/mini_servo_motor/feite_servo_motor.cpp

@ -182,6 +182,7 @@ bool FeiTeServoMotor::stop(uint8_t id) {
bool FeiTeServoMotor::runInMode0(uint8_t id, int32_t limitTorque, int32_t speed, int32_t pos3600) {
zlock_guard l(m_mutex);
feite_servo_info_t* info = getServoInfo(id);
ZLOGI(TAG, "runInMode0 id:%d limitTorque:%d speed:%d pos3600:%d", id, limitTorque, speed, pos3600);
if (!info) {
ZLOGE(TAG, "servo info id:%d not find", id);

2
usrc/subboards/subboard90_optical_module/optical_module_v2.cpp

@ -6,7 +6,7 @@
using namespace iflytop;
using namespace std;
#define RAW_SECTION_SIZE 128
#define RAW_SECTION_SIZE 64
#define TAG "OPT"
#define LOGI(fmt, ...) ZLOGI(TAG, fmt, ##__VA_ARGS__)

Loading…
Cancel
Save