[dev_sweeper310][adas] 轨迹下载请求接口添加消息来源字段

This commit is contained in:
xinfengkun
2023-05-04 16:07:17 +08:00
parent 65c39167fd
commit 54ea3e3022

View File

@@ -1113,6 +1113,7 @@ public class AdasChannel implements IAdasNetCommApi, FpgaSocket.IWebSocketConnec
@Override
public boolean sendTrajectoryDownloadReq(MessagePad.Line line) {
MessagePad.TrajectoryDownloadReq.Builder builder = MessagePad.TrajectoryDownloadReq.newBuilder();
builder.setSource(1);//指令来源: 0: default, 1:pad, 2:aicloud
builder.setLine(line);
MessagePad.TrajectoryDownloadReq req = builder.build();
return sendPBMessage(MessageType.TYPE_SEND_TRAJECTORY_DOWNLOAD_REQ.typeCode, req.toByteArray());