BatteryStatus constructor
BatteryStatus({
- required int32_t currentConsumed,
- required int32_t energyConsumed,
- required int16_t temperature,
- required List<
int16_t> voltages, - required int16_t currentBattery,
- required uint8_t id,
- required MavBatteryFunction batteryFunction,
- required MavBatteryType type,
- required int8_t batteryRemaining,
- required int32_t timeRemaining,
- required MavBatteryChargeState chargeState,
- required List<
int16_t> voltagesExt, - required MavBatteryMode mode,
- required MavBatteryFault faultBitmask,
Implementation
BatteryStatus({
required this.currentConsumed,
required this.energyConsumed,
required this.temperature,
required this.voltages,
required this.currentBattery,
required this.id,
required this.batteryFunction,
required this.type,
required this.batteryRemaining,
required this.timeRemaining,
required this.chargeState,
required this.voltagesExt,
required this.mode,
required this.faultBitmask,
});