CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Maxell.h
Views: 1798
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
uint16_t get_capacity_scaler() const override { return 2; }
15
16
};
17
18
#endif // AP_BATTERY_SMBUS_MAXELL_ENABLED
19
20