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
ca291c64
Commit
ca291c64
authored
Jun 25, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dock batteryChannels
parent
65892bc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
0 deletions
+132
-0
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/device/BatteryChannel.java
+117
-0
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/device/OsdDock.java
+15
-0
No files found.
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/device/BatteryChannel.java
0 → 100644
View file @
ca291c64
package
com
.
dji
.
sdk
.
cloudapi
.
device
;
import
java.io.Serializable
;
/**
* 草莓机场 机场换电电池信息
* @author guan
*/
public
class
BatteryChannel
implements
Serializable
{
private
Integer
index
;
private
Integer
current
;
private
Integer
cycle
;
private
Integer
health
;
private
Integer
capacityPercent
;
private
Float
temperature
;
private
Integer
status
;
private
String
name
;
public
BatteryChannel
()
{
}
@Override
public
String
toString
()
{
return
"BatteryChannel{"
+
"index="
+
index
+
", current="
+
current
+
", cycle="
+
cycle
+
", health="
+
health
+
", capacityPercent="
+
capacityPercent
+
", temperature="
+
temperature
+
", status="
+
status
+
", name="
+
name
+
'}'
;
}
public
Integer
getIndex
()
{
return
index
;
}
public
BatteryChannel
setIndex
(
Integer
index
)
{
this
.
index
=
index
;
return
this
;
}
public
Integer
getCurrent
()
{
return
current
;
}
public
BatteryChannel
setCurrent
(
Integer
current
)
{
this
.
current
=
current
;
return
this
;
}
public
Integer
getCycle
()
{
return
cycle
;
}
public
BatteryChannel
setCycle
(
Integer
cycle
)
{
this
.
cycle
=
cycle
;
return
this
;
}
public
Integer
getHealth
()
{
return
health
;
}
public
BatteryChannel
setHealth
(
Integer
health
)
{
this
.
health
=
health
;
return
this
;
}
public
Integer
getCapacityPercent
()
{
return
capacityPercent
;
}
public
BatteryChannel
setCapacityPercent
(
Integer
capacityPercent
)
{
this
.
capacityPercent
=
capacityPercent
;
return
this
;
}
public
Float
getTemperature
()
{
return
temperature
;
}
public
BatteryChannel
setTemperature
(
Float
temperature
)
{
this
.
temperature
=
temperature
;
return
this
;
}
public
Integer
getStatus
()
{
return
status
;
}
public
BatteryChannel
setStatus
(
Integer
status
)
{
this
.
status
=
status
;
return
this
;
}
public
String
getName
()
{
return
name
;
}
public
BatteryChannel
setName
(
String
name
)
{
this
.
name
=
name
;
return
this
;
}
}
cloud-sdk/src/main/java/com/dji/sdk/cloudapi/device/OsdDock.java
View file @
ca291c64
...
@@ -3,6 +3,8 @@ package com.dji.sdk.cloudapi.device;
...
@@ -3,6 +3,8 @@ package com.dji.sdk.cloudapi.device;
import
com.dji.sdk.annotations.CloudSDKVersion
;
import
com.dji.sdk.annotations.CloudSDKVersion
;
import
com.dji.sdk.config.version.CloudSDKVersionEnum
;
import
com.dji.sdk.config.version.CloudSDKVersionEnum
;
import
java.util.List
;
/**
/**
* @author sean
* @author sean
* @version 1.3
* @version 1.3
...
@@ -76,6 +78,9 @@ public class OsdDock {
...
@@ -76,6 +78,9 @@ public class OsdDock {
private
DroneBatteryMaintenanceInfo
droneBatteryMaintenanceInfo
;
private
DroneBatteryMaintenanceInfo
droneBatteryMaintenanceInfo
;
// 增加 机场 电池列表信息
private
List
<
BatteryChannel
>
batteryChannels
;
private
FlighttaskStepCodeEnum
flighttaskStepCode
;
private
FlighttaskStepCodeEnum
flighttaskStepCode
;
private
Integer
flighttaskPrepareCapacity
;
private
Integer
flighttaskPrepareCapacity
;
...
@@ -130,6 +135,7 @@ public class OsdDock {
...
@@ -130,6 +135,7 @@ public class OsdDock {
", workingVoltage="
+
workingVoltage
+
", workingVoltage="
+
workingVoltage
+
", workingCurrent="
+
workingCurrent
+
", workingCurrent="
+
workingCurrent
+
", backupBattery="
+
backupBattery
+
", backupBattery="
+
backupBattery
+
", batteryChannels="
+
batteryChannels
+
", droneBatteryMaintenanceInfo="
+
droneBatteryMaintenanceInfo
+
", droneBatteryMaintenanceInfo="
+
droneBatteryMaintenanceInfo
+
", flighttaskStepCode="
+
flighttaskStepCode
+
", flighttaskStepCode="
+
flighttaskStepCode
+
", flighttaskPrepareCapacity="
+
flighttaskPrepareCapacity
+
", flighttaskPrepareCapacity="
+
flighttaskPrepareCapacity
+
...
@@ -428,6 +434,15 @@ public class OsdDock {
...
@@ -428,6 +434,15 @@ public class OsdDock {
return
this
;
return
this
;
}
}
public
List
<
BatteryChannel
>
getBatteryChannels
()
{
return
batteryChannels
;
}
public
OsdDock
setBatteryChannels
(
List
<
BatteryChannel
>
batteryChannels
)
{
this
.
batteryChannels
=
batteryChannels
;
return
this
;
}
public
DroneBatteryMaintenanceInfo
getDroneBatteryMaintenanceInfo
()
{
public
DroneBatteryMaintenanceInfo
getDroneBatteryMaintenanceInfo
()
{
return
droneBatteryMaintenanceInfo
;
return
droneBatteryMaintenanceInfo
;
}
}
...
...
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