mirror of https://github.com/ArduPilot/ardupilot
26 lines
471 B
C++
26 lines
471 B
C++
#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
|