2024-12-12 08:05:43 -04:00
|
|
|
#include "SIM_config.h"
|
|
|
|
|
|
|
|
#if AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED
|
|
|
|
|
2020-10-20 19:41:31 -03:00
|
|
|
#include "SIM_BattMonitor_SMBus_Generic.h"
|
|
|
|
|
|
|
|
#include <AP_Common/Bitmask.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
Testing:
|
|
|
|
|
|
|
|
param set BATT_MONITOR 16
|
|
|
|
reboot
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace SITL {
|
|
|
|
|
|
|
|
class Maxell : public SIM_BattMonitor_SMBus_Generic
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
Maxell();
|
|
|
|
|
2021-06-08 02:22:42 -03:00
|
|
|
uint8_t cellcount() const override { return 14; }
|
|
|
|
uint8_t connected_cells() const override { return 14; }
|
2020-10-20 19:41:31 -03:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace SITL
|
2024-12-12 08:05:43 -04:00
|
|
|
|
|
|
|
#endif // AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED
|