forked from dji-sdk/Onboard-SDK-ROS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request dji-sdk#439 from DJI-Colin/add_obtain_battery_inte…
…rface Add obtain battery interface
- Loading branch information
Showing
13 changed files
with
298 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
uint8 voltageNotSafety # Generally caused by low temperature, the battery has electricity, | ||
# but the battery voltage is too low. | ||
uint8 veryLowVoltageAlarm | ||
uint8 LowVoltageAlarm | ||
uint8 seriousLowCapacityAlarm | ||
uint8 LowCapacityAlarm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
uint16 remainFlyTime # remain fly time(s) | ||
uint16 goHomeNeedTime # Time required for the gohome flight (s) | ||
uint16 landNeedTime # Time required for the land flight (s).max value:100*/ | ||
uint16 goHomeNeedCapacity # Capacity required for the gohome flight (%).max value:100*/ | ||
uint16 landNeedCapacity # Capacity required for the land flight (%).max value:100*/ | ||
float32 safeFlyRadius # Safe flight area radius (m)*/ | ||
float32 capacityConsumeSpeed # (mAh/sec)*/ | ||
BatteryState batteryState | ||
uint8 goHomeCountDownState # Countdown status of smart battery gohome | ||
# 0/2:not in gohome state | ||
# 1 :in gohome state | ||
# | ||
uint8 gohomeCountDownvalue # uint:s.max value:10 | ||
uint16 voltage # mv | ||
uint8 batteryCapacityPercentage # uint:%.max value:100 | ||
uint8 lowBatteryAlarmThreshold | ||
uint8 lowBatteryAlarmEnable | ||
uint8 seriousLowBatteryAlarmThreshold | ||
uint8 seriousLowBatteryAlarmEnable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
uint8 batteryIndex | ||
int32 currentVoltage # uint:mV | ||
int32 currentElectric # uint:mA | ||
uint32 fullCapacity # uint:mAh | ||
uint32 remainedCapacity # uint:mAh | ||
int16 batteryTemperature # uint:0.1℃ | ||
uint8 cellCount | ||
uint8 batteryCapacityPercent # uint:% | ||
SmartBatteryState batteryState | ||
uint8 SOP # Relative power percentage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
uint8 cellBreak # 0:normal;other:Undervoltage core index(0x01-0x1F) | ||
uint8 selfCheckError # enum-type: DJISmartBatterySelfCheck | ||
uint8 batteryClosedReason # enum-type: DJI_BETTERY_CLOSED_REASON | ||
uint8 batSOHState # enum-type: DJISmartBatterySohState*/ | ||
uint8 maxCycleLimit # APP:cycle_limit*10*/ | ||
uint8 batteryCommunicationAbnormal | ||
uint8 hasCellBreak | ||
uint8 heatState # enum-type: DJISmartBatteryHeatState |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.