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_SMBus_Solo.h
Views: 1798
1
#pragma once
2
3
#include "AP_BattMonitor_SMBus.h"
4
5
#if AP_BATTERY_SMBUS_SOLO_ENABLED
6
7
class AP_BattMonitor_SMBus_Solo : public AP_BattMonitor_SMBus
8
{
9
public:
10
11
// Constructor
12
AP_BattMonitor_SMBus_Solo(AP_BattMonitor &mon,
13
AP_BattMonitor::BattMonitor_State &mon_state,
14
AP_BattMonitor_Params &params);
15
16
private:
17
18
void timer(void) override;
19
20
uint8_t _button_press_count;
21
bool _use_extended;
22
};
23
24
#endif // AP_BATTERY_SMBUS_SOLO_ENABLED
25
26