2023-01-23 00:39:59 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "AP_BattMonitor_Backend.h"
|
|
|
|
|
2023-03-06 22:02:49 -04:00
|
|
|
#if AP_BATTERY_EFI_ENABLED
|
|
|
|
|
2023-01-23 00:39:59 -04:00
|
|
|
class AP_BattMonitor_EFI : public AP_BattMonitor_Backend
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
// Inherit constructor
|
|
|
|
using AP_BattMonitor_Backend::AP_BattMonitor_Backend;
|
|
|
|
|
|
|
|
// update state
|
|
|
|
void read(void) override;
|
|
|
|
|
|
|
|
bool has_current(void) const override {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool has_consumed_energy(void) const override {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
};
|
2023-03-06 22:02:49 -04:00
|
|
|
#endif // AP_BATTERY_EFI_ENABLED
|