BatteryStatus constructor

BatteryStatus({
  1. required int32_t currentConsumed,
  2. required int32_t energyConsumed,
  3. required int16_t temperature,
  4. required List<int16_t> voltages,
  5. required int16_t currentBattery,
  6. required uint8_t id,
  7. required MavBatteryFunction batteryFunction,
  8. required MavBatteryType type,
  9. required int8_t batteryRemaining,
  10. required int32_t timeRemaining,
  11. required MavBatteryChargeState chargeState,
  12. required List<int16_t> voltagesExt,
  13. required MavBatteryMode mode,
  14. 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,
});