2024-12-15 07:46:11 -04:00
|
|
|
#include "SIM_config.h"
|
2020-10-20 19:41:31 -03:00
|
|
|
|
2024-12-12 08:05:43 -04:00
|
|
|
#if AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED
|
|
|
|
|
2024-12-15 07:46:11 -04:00
|
|
|
#include "SIM_BattMonitor_SMBus_Maxell.h"
|
|
|
|
|
2020-10-20 19:41:31 -03:00
|
|
|
SITL::Maxell::Maxell() :
|
|
|
|
SIM_BattMonitor_SMBus_Generic()
|
|
|
|
{
|
2021-03-16 02:02:25 -03:00
|
|
|
// TO DO set maxell batteries PEC version to V1
|
|
|
|
|
|
|
|
// Note Maxell batteries do not support PEC and ArduPilot checks for this by
|
|
|
|
// checking that the manufacturer name matches "Hitachi maxell"
|
|
|
|
const char *manufacturer_name = "Hitachi maxell";
|
|
|
|
set_block(SMBusBattDevReg::MANUFACTURE_NAME, manufacturer_name);
|
|
|
|
|
|
|
|
const char *device_name = "SITL_maxell";
|
|
|
|
set_block(SMBusBattDevReg::DEVICE_NAME, device_name);
|
|
|
|
|
2020-10-20 19:41:31 -03:00
|
|
|
set_register(SMBusBattGenericDevReg::SERIAL, (uint16_t)37);
|
|
|
|
}
|
2024-12-12 08:05:43 -04:00
|
|
|
|
|
|
|
#endif // AP_SIM_BATT_MONITOR_SMBUS_MAXELL_ENABLED
|