Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
7d36f48b
Commit
7d36f48b
authored
Jan 20, 2026
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复空中下发bug
parent
48cc8380
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
sample/src/main/java/com/dji/sample/wayline/service/impl/FlightTaskServiceImpl.java
+11
-6
No files found.
sample/src/main/java/com/dji/sample/wayline/service/impl/FlightTaskServiceImpl.java
View file @
7d36f48b
...
...
@@ -735,6 +735,10 @@ public class FlightTaskServiceImpl extends AbstractWaylineService implements IFl
private
void
addConditionsInFlight
(
WaylineJobDTO
waylineJob
,
CreateInFlightJobParam
param
,
Long
beginTime
,
Long
endTime
)
{
if
(
TaskTypeEnum
.
CONDITIONAL
!=
param
.
getTaskType
())
{
return
;
}
waylineJob
.
setConditions
(
WaylineTaskConditionDTO
.
builder
()
// .executableConditions(Objects.nonNull(param.getMinStorageCapacity()) ?
...
...
@@ -768,15 +772,16 @@ public class FlightTaskServiceImpl extends AbstractWaylineService implements IFl
boolean
isSuccess
=
this
.
prepareInFlightTask
(
waylineJob
);
if
(!
isSuccess
)
{
return
HttpResultResponse
.
error
(
"Failed to prepare job."
);
return
HttpResultResponse
.
error
(
"Failed to prepare
In flight
job."
);
}
// Issue an immediate task execution command.
if
(
TaskTypeEnum
.
IMMEDIATE
==
waylineJob
.
getTaskType
())
{
if
(!
executeFlightTask
(
waylineJob
.
getWorkspaceId
(),
waylineJob
.
getJobId
()))
{
return
HttpResultResponse
.
error
(
"Failed to execute job."
);
}
}
// 不需要执行这个就可以直接起飞
// if (TaskTypeEnum.IMMEDIATE == waylineJob.getTaskType()) {
// if (!executeFlightTask(waylineJob.getWorkspaceId(), waylineJob.getJobId())) {
// return HttpResultResponse.error("Failed to execute job.");
// }
// }
// 发送 邮件
// this.sendCreatedTaskMail(waylineJob);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment