mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
70fe304c7e
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
42 lines
651 B
C++
42 lines
651 B
C++
#include "SIM_config.h"
|
|
|
|
#if AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED
|
|
|
|
#include "SIM_BattMonitor_SMBus_Generic.h"
|
|
|
|
#include <AP_Common/Bitmask.h>
|
|
|
|
/*
|
|
|
|
Testing:
|
|
|
|
param set BATT_MONITOR 19
|
|
reboot
|
|
|
|
*/
|
|
|
|
namespace SITL {
|
|
|
|
class SMBusBattRotoyeDevReg : public SMBusBattGenericDevReg {
|
|
public:
|
|
static const uint8_t TEMP_EXT = 0x48;
|
|
};
|
|
|
|
class Rotoye : public SIM_BattMonitor_SMBus_Generic
|
|
{
|
|
public:
|
|
|
|
Rotoye();
|
|
|
|
uint8_t cellcount() const override { return 3; }
|
|
|
|
void update(const class Aircraft &aircraft) override;
|
|
|
|
private:
|
|
uint32_t last_temperature_update_ms;
|
|
};
|
|
|
|
} // namespace SITL
|
|
|
|
#endif // AP_SIM_BATT_MONITOR_SMBUS_ROTOYE_ENABLED
|