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
b27b1694
Commit
b27b1694
authored
Aug 28, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自定义机场退出drc模式时不进行恢复航线指令
parent
19693038
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
sample/src/main/java/com/dji/sample/control/service/impl/DrcServiceImpl.java
+11
-1
No files found.
sample/src/main/java/com/dji/sample/control/service/impl/DrcServiceImpl.java
View file @
b27b1694
...
@@ -48,6 +48,9 @@ import java.util.List;
...
@@ -48,6 +48,9 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.Optional
;
import
java.util.Optional
;
import
static
com
.
dji
.
sample
.
common
.
constant
.
DeviceConstant
.
CUSTOM_DOCK_LIST
;
import
static
com
.
dji
.
sample
.
common
.
constant
.
DeviceConstant
.
CUSTOM_DOCK_START
;
/**
/**
* @author sean
* @author sean
* @version 1.3
* @version 1.3
...
@@ -222,7 +225,14 @@ public class DrcServiceImpl implements IDrcService {
...
@@ -222,7 +225,14 @@ public class DrcServiceImpl implements IDrcService {
String
jobId
=
waylineRedisService
.
getPausedWaylineJobId
(
param
.
getDockSn
());
String
jobId
=
waylineRedisService
.
getPausedWaylineJobId
(
param
.
getDockSn
());
if
(
StringUtils
.
hasText
(
jobId
))
{
if
(
StringUtils
.
hasText
(
jobId
))
{
flighttaskService
.
updateJobStatus
(
workspaceId
,
jobId
,
UpdateJobParam
.
builder
().
status
(
WaylineTaskStatusEnum
.
RESUME
).
build
());
if
(
CUSTOM_DOCK_LIST
.
contains
(
param
.
getDockSn
())
||
param
.
getDockSn
().
contains
(
"12345"
))
{
}
else
if
(
StringUtils
.
hasText
(
param
.
getDockSn
())
&&
param
.
getDockSn
().
startsWith
(
CUSTOM_DOCK_START
))
{
}
else
{
// 非自定义机场 恢复航线
flighttaskService
.
updateJobStatus
(
workspaceId
,
jobId
,
UpdateJobParam
.
builder
().
status
(
WaylineTaskStatusEnum
.
RESUME
).
build
());
}
}
}
this
.
delDrcModeInRedis
(
param
.
getDockSn
());
this
.
delDrcModeInRedis
(
param
.
getDockSn
());
...
...
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