Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
BatteryController.hpp
Go to the documentation of this file.
1
15
16#ifndef BATTERYCONTROLLER_HPP
17#define BATTERYCONTROLLER_HPP
18
19#include <QObject>
21#include "II2CController.hpp"
22
28{
29public:
30 explicit BatteryController(II2CController *i2cController = nullptr);
31 ~BatteryController() override;
32
33 float getBatteryPercentage() override;
34
35private:
37 float getBusVoltage_V();
38 float getShuntVoltage_V();
39
42};
43
44#endif // BATTERYCONTROLLER_HPP
Definition of the IBatteryController interface.
Definition of the II2CController interface.
void setCalibration32V2A()
Set the calibration for 32V and 2A.
~BatteryController() override
Destroy the BatteryController object.
BatteryController(II2CController *i2cController=nullptr)
Construct a new BatteryController object.
float getBusVoltage_V()
Get the bus voltage in volts.
float getShuntVoltage_V()
Get the shunt voltage in volts.
float getBatteryPercentage() override
Get the battery percentage.
II2CController * m_i2cController
Interface for managing the battery of the vehicle.
Interface for controlling I2C devices.