format smart battery serial number as string on mavlink

according to change on mavlink protocol message
formatted as 'dd/mm/yy-123456'
This commit is contained in:
bazooka joe
2020-12-28 11:04:54 +01:00
committed by Lorenz Meier
parent ceadcd74d0
commit 8d5813994f
3 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ uint16 cycle_count # number of discharge cycles the battery has experienced
uint16 run_time_to_empty # predicted remaining battery capacity based on the present rate of discharge in min
uint16 average_time_to_empty # predicted remaining battery capacity based on the average rate of discharge in min
uint16 serial_number # serial number of the battery pack
uint16 manufacture_date # manufacture date, part of serial number of the battery pack
uint16 manufacture_date # manufacture date, part of serial number of the battery pack. formated as: Day + Month×32 + (Year–1980)×512
uint16 state_of_health # state of health. FullChargeCapacity/DesignCapacity.
uint16 max_error # max error, expected margin of error in % in the state-of-charge calculation with a range of 1 to 100%
uint8 id # ID number of a battery. Should be unique and consistent for the lifetime of a vehicle. 1-indexed.