修改一键起飞
This commit is contained in:
parent
fb387aaa1e
commit
6da33d3d9c
|
|
@ -45,14 +45,19 @@ public class FlightServiceImpl implements FlightService
|
||||||
|
|
||||||
public Long createClickTakeOffTask(String sn, String routeUrl){
|
public Long createClickTakeOffTask(String sn, String routeUrl){
|
||||||
TaskDTO taskDTO = new TaskDTO();
|
TaskDTO taskDTO = new TaskDTO();
|
||||||
|
taskDTO.setTaskName("一键起飞");
|
||||||
taskDTO.setActualStartTime(new Date());
|
taskDTO.setActualStartTime(new Date());
|
||||||
taskDTO.setStartTime(new Date());
|
taskDTO.setStartTime(new Date());
|
||||||
|
|
||||||
taskDTO.setExecuteType(ExecuteTypeEnum.ONCE);
|
taskDTO.setExecuteType(ExecuteTypeEnum.ONCE);
|
||||||
taskDTO.setTaskCategory(TaskCategoryEnum.MANUAL_FLIGHT);
|
taskDTO.setTaskCategory(TaskCategoryEnum.MANUAL_FLIGHT);
|
||||||
|
|
||||||
taskDTO.setRouteId(-1L);
|
taskDTO.setRouteId(-1L);
|
||||||
taskDTO.setUavId(sn);
|
taskDTO.setUavId(sn);
|
||||||
|
|
||||||
taskDTO.setStatus(StatusEnum.PENDING);
|
taskDTO.setStatus(StatusEnum.PENDING);
|
||||||
taskDTO.setRouteUrl(routeUrl);
|
taskDTO.setRouteUrl(routeUrl);
|
||||||
|
|
||||||
R<Long> taskId = remoteTaskService.createTaskWithoutPlan(taskDTO,SecurityConstants.INNER);
|
R<Long> taskId = remoteTaskService.createTaskWithoutPlan(taskDTO,SecurityConstants.INNER);
|
||||||
|
|
||||||
return taskId.getData();
|
return taskId.getData();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue