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/Tools/AP_Periph/batt_balance.h
Views: 1798
1
#pragma once
2
3
#ifdef HAL_PERIPH_ENABLE_BATTERY_BALANCE
4
5
class BattBalance {
6
public:
7
friend class AP_Periph_FW;
8
BattBalance(void);
9
10
static const struct AP_Param::GroupInfo var_info[];
11
12
private:
13
AP_Int8 num_cells;
14
AP_Int8 id;
15
AP_Int8 cell1_pin;
16
AP_Float rate;
17
uint32_t last_send_ms;
18
19
AP_HAL::AnalogSource **cells;
20
uint8_t cells_allocated;
21
};
22
23
#endif // HAL_PERIPH_ENABLE_BATTERY_BALANCE
24
25
26