BatteryInfo class

Battery information that is static, or requires infrequent update. This message should requested using MAV_CMD_REQUEST_MESSAGE and/or streamed at very low rate. BATTERY_STATUS_V2 is used for higher-rate battery status information.

BATTERY_INFO

Implemented types

Constructors

BatteryInfo({required float dischargeMinimumVoltage, required float chargingMinimumVoltage, required float restingMinimumVoltage, required float chargingMaximumVoltage, required float chargingMaximumCurrent, required float nominalVoltage, required float dischargeMaximumCurrent, required float dischargeMaximumBurstCurrent, required float designCapacity, required float fullChargeCapacity, required uint16_t cycleCount, required uint16_t weight, required uint8_t id, required MavBatteryFunction batteryFunction, required MavBatteryType type, required uint8_t stateOfHealth, required uint8_t cellsInSeries, required List<char> manufactureDate, required List<char> serialNumber, required List<char> name})
BatteryInfo.parse(ByteData data_)
factory

Properties

batteryFunction MavBatteryFunction
Function of the battery.
final
cellsInSeries uint8_t
Number of battery cells in series. 0: field not provided.
final
chargingMaximumCurrent float
Maximum pack continuous charge current. 0: field not provided.
final
chargingMaximumVoltage float
Maximum per-cell voltage when charged. 0: field not provided.
final
chargingMinimumVoltage float
Minimum per-cell voltage when charging. 0: field not provided.
final
cycleCount uint16_t
Lifetime count of the number of charge/discharge cycles (https://en.wikipedia.org/wiki/Charge_cycle). UINT16_MAX: field not provided.
final
designCapacity float
Fully charged design capacity. 0: field not provided.
final
dischargeMaximumBurstCurrent float
Maximum pack discharge burst current. 0: field not provided.
final
dischargeMaximumCurrent float
Maximum pack discharge current. 0: field not provided.
final
dischargeMinimumVoltage float
Minimum per-cell voltage when discharging. 0: field not provided.
final
fullChargeCapacity float
Predicted battery capacity when fully charged (accounting for battery degradation). NAN: field not provided.
final
hashCode int
The hash code for this object.
no setterinherited
id uint8_t
Battery ID
final
manufactureDate List<char>
Manufacture date (DDMMYYYY) in ASCII characters, 0 terminated. All 0: field not provided.
final
mavlinkCrcExtra int
no setteroverride
mavlinkMessageId int
no setteroverride
name List<char>
Battery device name. Formatted as manufacturer name then product name, separated with an underscore (in ASCII characters), 0 terminated. All 0: field not provided.
final
nominalVoltage float
Battery nominal voltage. Used for conversion between Wh and Ah. 0: field not provided.
final
restingMinimumVoltage float
Minimum per-cell voltage when resting. 0: field not provided.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber List<char>
Serial number in ASCII characters, 0 terminated. All 0: field not provided.
final
stateOfHealth uint8_t
State of Health (SOH) estimate. Typically 100% at the time of manufacture and will decrease over time and use. -1: field not provided.
final
type MavBatteryType
Type (chemistry) of the battery.
final
weight uint16_t
Battery weight. 0: field not provided.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() ByteData
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

mavlinkEncodedLength → const int