ardupilot/Tools/AP_Periph/batt_balance.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
426 B
C
Raw Normal View History

#pragma once
#ifdef HAL_PERIPH_ENABLE_BATTERY_BALANCE
class BattBalance {
public:
friend class AP_Periph_FW;
BattBalance(void);
static const struct AP_Param::GroupInfo var_info[];
private:
AP_Int8 num_cells;
AP_Int8 id;
AP_Int8 cell1_pin;
AP_Float rate;
uint32_t last_send_ms;
AP_HAL::AnalogSource **cells;
uint8_t cells_allocated;
};
#endif // HAL_PERIPH_ENABLE_BATTERY_BALANCE