ardupilot/libraries/AP_BattMonitor/AP_BattMonitor_EFI.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
471 B
C
Raw Normal View History

#pragma once
#include "AP_BattMonitor_Backend.h"
#if AP_BATTERY_EFI_ENABLED
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 // AP_BATTERY_EFI_ENABLED