|
|
@ -108,7 +108,7 @@ int32_t XYRobotCtrlModule::module_stop() { |
|
|
|
return 0; |
|
|
|
} |
|
|
|
|
|
|
|
int32_t XYRobotCtrlModule::xymotor_move_to(int32_t x, int32_t y, int32_t __) { |
|
|
|
int32_t XYRobotCtrlModule::xymotor_move_to(int32_t x, int32_t y) { |
|
|
|
ZLOGI(TAG, "xymotor_move_to x:%d y:%d ", x, y); |
|
|
|
if (do_public_check() != 0) { |
|
|
|
return do_public_check(); |
|
|
@ -128,14 +128,14 @@ int32_t XYRobotCtrlModule::xymotor_move_to(int32_t x, int32_t y, int32_t __) { |
|
|
|
|
|
|
|
return do_xymotor_move_to(x, y); |
|
|
|
} |
|
|
|
int32_t XYRobotCtrlModule::xymotor_move_by(int32_t dx, int32_t dy, int32_t __) { |
|
|
|
int32_t XYRobotCtrlModule::xymotor_move_by(int32_t dx, int32_t dy) { |
|
|
|
ZLOGI(TAG, "xymotor_move_by dx:%d dy:%d", dx, dy); |
|
|
|
if (do_public_check() != 0) { |
|
|
|
return do_public_check(); |
|
|
|
} |
|
|
|
int32_t x, y; |
|
|
|
getnowpos(x, y); |
|
|
|
return xymotor_move_to(x + dx, y + dy, __); |
|
|
|
return xymotor_move_to(x + dx, y + dy); |
|
|
|
} |
|
|
|
|
|
|
|
int32_t XYRobotCtrlModule::xymotor_move_to_zero() { |
|
|
|