CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_BattMonitor/AP_BattMonitor_EFI.h
Views: 1798
1
#pragma once
2
3
#include "AP_BattMonitor_Backend.h"
4
5
#if AP_BATTERY_EFI_ENABLED
6
7
class AP_BattMonitor_EFI : public AP_BattMonitor_Backend
8
{
9
public:
10
11
// Inherit constructor
12
using AP_BattMonitor_Backend::AP_BattMonitor_Backend;
13
14
// update state
15
void read(void) override;
16
17
bool has_current(void) const override {
18
return true;
19
}
20
21
bool has_consumed_energy(void) const override {
22
return true;
23
}
24
};
25
#endif // AP_BATTERY_EFI_ENABLED
26
27