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
f3564ccc
Commit
f3564ccc
authored
Nov 06, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整参数commanderFlightHeight
parent
762ebec3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/device/OsdDockDrone.java
+15
-0
sample/src/main/java/com/dji/sample/manage/model/receiver/CommanderFlightHeightReceiver.java
+3
-2
No files found.
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/device/OsdDockDrone.java
View file @
f3564ccc
...
...
@@ -103,6 +103,11 @@ public class OsdDockDrone {
*/
private
CommanderFlightModeEnum
commanderFlightMode
;
/**
* 指点飞行高度
*/
private
Float
commanderFlightHeight
;
public
OsdDockDrone
()
{
}
...
...
@@ -502,4 +507,13 @@ public class OsdDockDrone {
return
this
;
}
public
Float
getCommanderFlightHeight
()
{
return
commanderFlightHeight
;
}
public
OsdDockDrone
setCommanderFlightHeight
(
Float
commanderFlightHeight
)
{
this
.
commanderFlightHeight
=
commanderFlightHeight
;
return
this
;
}
}
\ No newline at end of file
sample/src/main/java/com/dji/sample/manage/model/receiver/CommanderFlightHeightReceiver.java
View file @
f3564ccc
...
...
@@ -17,7 +17,7 @@ public class CommanderFlightHeightReceiver extends BasicDeviceProperty {
private
static
final
int
HEIGHT_LIMIT_MIN
=
20
;
private
Integer
commanderFlightHeight
;
private
Float
commanderFlightHeight
;
@Override
public
boolean
valid
()
{
...
...
@@ -26,6 +26,6 @@ public class CommanderFlightHeightReceiver extends BasicDeviceProperty {
@Override
public
boolean
canPublish
(
OsdDockDrone
osd
)
{
return
commanderFlightHeight
.
intValue
()
!=
osd
.
getHeightLimi
t
();
return
commanderFlightHeight
.
floatValue
()
!=
osd
.
getCommanderFlightHeigh
t
();
}
}
\ No newline at end of file
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