Ardupilot2/libraries/AP_BattMonitor/AP_BattMonitor_SMBus_Solo.h
2023-09-26 10:17:02 +10:00

25 lines
508 B
C++

#pragma once
#include "AP_BattMonitor_SMBus.h"
#if AP_BATTERY_SMBUS_SOLO_ENABLED
class AP_BattMonitor_SMBus_Solo : public AP_BattMonitor_SMBus
{
public:
// Constructor
AP_BattMonitor_SMBus_Solo(AP_BattMonitor &mon,
AP_BattMonitor::BattMonitor_State &mon_state,
AP_BattMonitor_Params &params);
private:
void timer(void) override;
uint8_t _button_press_count;
bool _use_extended;
};
#endif // AP_BATTERY_SMBUS_SOLO_ENABLED