guoshilong
2023-11-13 68f80a7451a126335153ec00bb6cb520a5ae1f8d
src/main/java/com/dji/sample/control/service/impl/DrcServiceImpl.java
@@ -63,10 +63,10 @@
    @Autowired
    private IDeviceService deviceService;
    @Autowired
    private ObjectMapper mapper;
    @Autowired
    private ISendMessageService webSocketMessageService;
@@ -190,13 +190,13 @@
    @Override
    public void deviceDrcExit(String workspaceId, DrcModeParam param) {
        if (!deviceService.checkDockDrcMode(param.getDockSn())) {
            throw new RuntimeException("The dock is not in flight control mode.");
            throw new RuntimeException("机场没有进入飞行控制模式");
        }
        ServiceReply reply = messageSenderService.publishServicesTopic(
                param.getDockSn(), DrcMethodEnum.DRC_MODE_EXIT.getMethod(), "");
        if (ResponseResult.CODE_SUCCESS != reply.getResult()) {
            throw new RuntimeException("SN: " + param.getDockSn() + "; Error Code:" +
                    reply.getResult() + "; Failed to exit command flight control mode, please try again later!");
                    reply.getResult() + "; 命令飞行控制模式退出失败,请稍后再试!");
        }
        String jobId = waylineRedisService.getPausedWaylineJobId(param.getDockSn());