|
@ -18,20 +18,35 @@ ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to_zero, cmd, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to_zero_with_calibrate, cmd, uint8_t id; uint8_t _pad; int32_t x; int32_t y;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to_zero_with_calibrate, cmd, uint8_t id; uint8_t _pad; int32_t x; int32_t y;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to, cmd, uint8_t id; uint8_t _pad; int32_t x; int32_t y;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to, cmd, uint8_t id; uint8_t _pad; int32_t x; int32_t y;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_by, cmd, uint8_t id; uint8_t _pad; int32_t dx; int32_t dy;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_by, cmd, uint8_t id; uint8_t _pad; int32_t dx; int32_t dy;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_current_pos, cmd, uint8_t id; uint8_t _pad; int32_t x; int32_t y;); |
|
|
|
|
|
|
|
|
#if 0
|
|
|
|
|
|
kcmd_xy_robot_ctrl_read_status = CMDID(1006, 50), // 读取机器人状态
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_robottype = CMDID(1006, 100), // 机器人类型
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_current_pos = CMDID(1006, 101), // 设置当前位置
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_distance_scale = CMDID(1006, 102), // 设置距离比例
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_ihold_irun_iholddelay = CMDID(1006, 103), // 设置电流
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_acc = CMDID(1006, 104), // 设置加速度
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_dec = CMDID(1006, 105), // 设置减速度
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_speed = CMDID(1006, 106), // 设置位置模式速度
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_shaft = CMDID(1006, 107), // 设置轴是否反向
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_runtozero_max_distance = CMDID(1006, 108), // 设置回零最大距离
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_runtozero_speed = CMDID(1006, 109), // 设置回零速度
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_runtozero_dec = CMDID(1006, 110), // 设置回零减速度
|
|
|
|
|
|
kcmd_xy_robot_ctrl_set_runtozero_leave_away_zero_distance = CMDID(1006, 111), // 设置离零点距离
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_read_status, cmd, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_read_status, cmd, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_robottype, cmd, uint8_t id; uint8_t _pad; uint8_t zero_robottype;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_current_pos, cmd, uint8_t id; uint8_t _pad; int32_t x; int32_t y;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_distance_scale, cmd, uint8_t id; uint8_t _pad; float distance_scale;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_ihold_irun_iholddelay, cmd, uint8_t id; uint8_t _pad; uint8_t ihold; uint8_t irun; uint16_t iholddelay;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_acc, cmd, uint8_t id; uint8_t _pad; int32_t acc;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_acc, cmd, uint8_t id; uint8_t _pad; int32_t acc;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_dec, cmd, uint8_t id; uint8_t _pad; int32_t dec;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_dec, cmd, uint8_t id; uint8_t _pad; int32_t dec;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_speed, cmd, uint8_t id; uint8_t _pad; int32_t speed;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_speed, cmd, uint8_t id; uint8_t _pad; int32_t speed;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_x_shaft, cmd, uint8_t id; uint8_t _pad; uint8_t x_shaft;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_y_shaft, cmd, uint8_t id; uint8_t _pad; uint8_t y_shaft;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_zero_robottype, cmd, uint8_t id; uint8_t _pad; uint8_t zero_robottype;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_maxX, cmd, uint8_t id; uint8_t _pad; int32_t maxX;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_maxY, cmd, uint8_t id; uint8_t _pad; int32_t maxY;); |
|
|
|
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_shaft, cmd, uint8_t id; uint8_t _pad; uint8_t x_shaft; uint8_t y_shaft;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_max_distance, cmd, uint8_t id; uint8_t _pad; int32_t maxX; int32_t maxY;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_speed, cmd, uint8_t id; uint8_t _pad; int32_t speed;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_speed, cmd, uint8_t id; uint8_t _pad; int32_t speed;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_dec, cmd, uint8_t id; uint8_t _pad; int32_t dec;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_dec, cmd, uint8_t id; uint8_t _pad; int32_t dec;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_leave_away_zero_maxXY, cmd, uint8_t id; uint8_t _pad; int32_t maxXY;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_distance_scale, cmd, uint8_t id; uint8_t _pad; float distance_scale;); |
|
|
|
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_leave_away_zero_distance, cmd, uint8_t id; uint8_t _pad; int32_t distance;); |
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/*******************************************************************************
|
|
|
* ACK * |
|
|
* ACK * |
|
@ -42,20 +57,21 @@ ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to_zero, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to_zero_with_calibrate, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to_zero_with_calibrate, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_to, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_by, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_move_by, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_current_pos, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
|
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_read_status, ack, uint8_t id; uint8_t module_statu; int32_t x; int32_t y;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_read_status, ack, uint8_t id; uint8_t module_statu; int32_t x; int32_t y;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_robottype, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_current_pos, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_distance_scale, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_ihold_irun_iholddelay, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_acc, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_acc, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_dec, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_dec, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_speed, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_speed, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_x_shaft, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_y_shaft, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_zero_robottype, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_maxX, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_maxY, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_shaft, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_max_distance, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_speed, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_speed, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_dec, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_dec, ack, uint8_t id; uint8_t _pad;); |
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_leave_away_zero_maxXY, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_distance_scale, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
|
|
|
ZPACKET_STRUCT(kcmd_xy_robot_ctrl_set_runtozero_leave_away_zero_distance, ack, uint8_t id; uint8_t _pad;); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*******************************************************************************
|
|
|
/*******************************************************************************
|
|
|
* status_report * |
|
|
* status_report * |
|
|