| | |
| | | package com.ard.route.util; |
| | | |
| | | import com.ard.route.domain.*; |
| | | import com.ard.route.domain.djuav.*; |
| | | import com.ard.route.domain.sixhe.ArdRouteChange; |
| | | |
| | | /** |
| | | * 初始化数据 |
| | |
| | | public UavRouteReq initialization(UavRouteReq uavRouteReq){ |
| | | uavRouteReq.setTemplateType("waypoint"); |
| | | // 起始点默认航线第一个点 |
| | | uavRouteReq.setTakeOffRefPoint( |
| | | uavRouteReq.getRoutePointList().get(0).getLatitude() + "," + |
| | | uavRouteReq.getRoutePointList().get(0).getLongitude() + "," + "0"); |
| | | if (uavRouteReq.getTakeOffRefPoint().isEmpty()){ |
| | | uavRouteReq.setTakeOffRefPoint( |
| | | uavRouteReq.getRoutePointList().get(0).getLatitude() + "," + |
| | | uavRouteReq.getRoutePointList().get(0).getLongitude() + "," + "0"); |
| | | } |
| | | //uavRouteReq.setDroneType(89); |
| | | uavRouteReq.setSubDroneType(0); |
| | | uavRouteReq.setPayloadType(43); |
| | |
| | | } |
| | | return uavRouteReq; |
| | | } |
| | | |
| | | private void initializationSixHe(){ |
| | | ArdRouteChange ardRouteChange = new ArdRouteChange(); |
| | | } |
| | | } |