Line data Source code
1 : #pragma once 2 : 3 : #include "AP_BattMonitor_SMBus_Generic.h" 4 : 5 : #if AP_BATTERY_SMBUS_MAXELL_ENABLED 6 : 7 : class AP_BattMonitor_SMBus_Maxell : public AP_BattMonitor_SMBus_Generic 8 : { 9 : using AP_BattMonitor_SMBus_Generic::AP_BattMonitor_SMBus_Generic; 10 : 11 : private: 12 : 13 : // return a scaler that should be multiplied by the battery's reported capacity numbers to arrive at the actual capacity in mAh 14 318 : uint16_t get_capacity_scaler() const override { return 2; } 15 : 16 : }; 17 : 18 : #endif // AP_BATTERY_SMBUS_MAXELL_ENABLED