mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-07 08:28:30 -04:00
30 lines
521 B
C
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
|
||
|
|