Browse Source

update

master
zhaohe 2 years ago
parent
commit
0bd66d9166
  1. 3
      components/zcancmder_module/zcan_eeprom_module.cpp
  2. 8
      components/zcancmder_module/zcan_xy_robot_module.cpp

3
components/zcancmder_module/zcan_eeprom_module.cpp

@ -20,7 +20,6 @@ void ZCanEepromModule::onRceivePacket(CanPacketRxBuffer* rxcmd) { //
static_assert(sizeof(*report) < sizeof(m_txbuf), "report size too large");
ZLOGI(TAG, "kcmd_eeprom_start_monitor_status exec_status:%d", status);
report->id = m_id;
report->status = status;
m_cancmder->sendStatusReport(cmdheader, (uint8_t*)report, sizeof(*report));
});
@ -33,4 +32,4 @@ void ZCanEepromModule::onRceivePacket(CanPacketRxBuffer* rxcmd) { //
PROCESS_PACKET(kcmd_eeprom_read_block, m_id) { errorcode = m_module->read(cmd->sector_index, cmd->sector_size, ack->ack); };
END_PP();
}
#endif
#endif

8
components/zcancmder_module/zcan_xy_robot_module.cpp

@ -26,8 +26,6 @@ void ZCANXYRobotCtrlModule::onRceivePacket(CanPacketRxBuffer* rxcmd) {
osDelay(5); // 用来保证回执消息在前面
kcmd_xy_robot_ctrl_move_to_zero_report_t report = {0};
ZLOGI(TAG, "kcmd_xy_robot_ctrl_move_to_zero exec_status:%d", status);
report.id = m_id;
report.exec_status = status;
m_cancmder->sendExecStatusReport(cmdheader, (uint8_t*)&report, sizeof(report));
});
@ -38,8 +36,6 @@ void ZCANXYRobotCtrlModule::onRceivePacket(CanPacketRxBuffer* rxcmd) {
osDelay(5); // 用来保证回执消息在前面
kcmd_xy_robot_ctrl_move_to_zero_with_calibrate_report_t report = {0};
ZLOGI(TAG, "kcmd_xy_robot_ctrl_move_to_zero_with_calibrate exec_status:%d", status);
report.id = m_id;
report.exec_status = status;
m_cancmder->sendExecStatusReport(cmdheader, (uint8_t*)&report, sizeof(report));
});
@ -51,8 +47,6 @@ void ZCANXYRobotCtrlModule::onRceivePacket(CanPacketRxBuffer* rxcmd) {
osDelay(5); // 用来保证回执消息在前面
kcmd_xy_robot_ctrl_move_to_report_t report = {0};
ZLOGI(TAG, "kcmd_xy_robot_ctrl_move_to exec_status:%d", status);
report.id = m_id;
report.exec_status = status;
m_cancmder->sendExecStatusReport(cmdheader, (uint8_t*)&report, sizeof(report));
});
@ -64,8 +58,6 @@ void ZCANXYRobotCtrlModule::onRceivePacket(CanPacketRxBuffer* rxcmd) {
osDelay(5); // 用来保证回执消息在前面
kcmd_xy_robot_ctrl_move_by_report_t report = {0};
ZLOGI(TAG, "kcmd_xy_robot_ctrl_move_by exec_status:%d", status);
report.id = m_id;
report.exec_status = status;
m_cancmder->sendExecStatusReport(cmdheader, (uint8_t*)&report, sizeof(report));
});

Loading…
Cancel
Save