ardupilot/libraries/AP_BattMonitor/AP_BattMonitor_EFI.h

30 lines
521 B
C++

#pragma once
#include <AP_EFI/AP_EFI_config.h>
#if HAL_EFI_ENABLED
#include "AP_BattMonitor.h"
#include "AP_BattMonitor_Backend.h"
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;
}
};
#endif // HAL_EFI_ENABLED