| | |
| | | package com.ard.work.component.netty.handler;// MessageProtocolDecoder.java |
| | | |
| | | import com.ard.common.utils.ByteUtils; |
| | | import com.ard.work.component.netty.command.camera.*; |
| | | import com.ard.work.component.netty.command.manual.*; |
| | | import com.ard.work.component.netty.command.wayline.*; |
| | | import com.ard.work.domain.dto.converter.realdata.UavSignalInfoConverter; |
| | |
| | | import com.ard.work.domain.dto.state.UavState; |
| | | import com.ard.work.domain.dto.telemetry.TelemetryData; |
| | | import com.ard.work.component.netty.command.BaseCmd; |
| | | import com.ard.work.component.netty.command.camera.CameraModeReplyCmd; |
| | | import com.ard.work.component.netty.command.camera.CapturePicReplyCmd; |
| | | import com.ard.work.component.netty.command.camera.RecordStartReplyCmd; |
| | | import com.ard.work.component.netty.command.camera.RecordStopReplyCmd; |
| | | import com.ard.work.component.netty.command.notice.BoxPowerStatusReplyCmd; |
| | | import com.ard.work.component.netty.command.notice.FlyWayEndReplyCmd; |
| | | import com.ard.work.component.netty.command.camera.PicUploadCompletedReplyCmd; |
| | | import com.ard.work.component.netty.command.notice.UavReadyReplyCmd; |
| | | import com.ard.work.component.netty.command.real.SignalInfoCmd; |
| | | import com.ard.work.component.netty.command.real.UavStateCmd; |
| | |
| | | return new FlyWayEndReplyCmd(boxSn, result, errorCode); |
| | | // Special cases |
| | | case 0x3D: |
| | | case 0x40: |
| | | return new FormatSdCardReplyCmd(boxSn, result, errorCode); |
| | | case 0x42: |
| | | return processSpecialD1ReplyCmd(in, actionCode, boxSn); |
| | | // Add other cases... |