forked from ArduPilot/ardupilot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dsdl: add PacketDigital battery manager packets
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
libraries/AP_DroneCAN/dsdl/com/packetdigital/equipment/power/BatteryInfoDetail.uavcan
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 @@ | ||
# | ||
# Battery info for multiple battery subpacks | ||
# | ||
# Typical publishing rate should be around 0.1~1 Hz. | ||
# | ||
|
||
# Battery info and cell voltages for each subpack | ||
void4 | ||
Subpack[<=10] subpacks | ||
|
||
# | ||
# Battery identification. | ||
# Model instance ID must be unique within the same battery model name. | ||
# Model name is a human-readable string that normally should include the vendor name, model name, and chemistry | ||
# type of this battery. This field should be assumed case-insensitive. Example: "Zubax Smart Battery v1.1 LiPo". | ||
# | ||
uint8 battery_id # Identifies the battery within this vehicle, e.g. 0 - primary battery | ||
uint32 model_instance_id # Set to zero if not applicable | ||
uint8[<32] model_name # Battery model name |
10 changes: 10 additions & 0 deletions
10
libraries/AP_DroneCAN/dsdl/com/packetdigital/equipment/power/Subpack.uavcan
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 @@ | ||
# | ||
# Battery info for a single subpack | ||
# | ||
|
||
uavcan.equipment.power.BatteryInfo battery_info | ||
void3 | ||
|
||
# Individual cell voltages | ||
void4 | ||
float16[<=12] cell_voltage # [Volt] |