2021-03-16 08:50:07 +00:00
|
|
|
#pragma once
|
2021-08-07 12:59:11 +00:00
|
|
|
#include <string>
|
2021-03-16 08:50:07 +00:00
|
|
|
|
|
|
|
class BatteryStats{
|
|
|
|
public:
|
2021-04-29 23:19:53 +00:00
|
|
|
void numBattery();
|
2021-03-16 08:50:07 +00:00
|
|
|
void update();
|
2021-04-27 00:23:41 +00:00
|
|
|
float getPower();
|
2021-04-26 23:49:50 +00:00
|
|
|
float getPercent();
|
2022-02-09 04:20:59 +00:00
|
|
|
float getTimeRemaining();
|
2021-08-07 12:59:11 +00:00
|
|
|
std::string battPath[2];
|
2021-03-16 08:50:07 +00:00
|
|
|
float current_watt = 0;
|
2021-03-25 00:16:58 +00:00
|
|
|
float current_percent = 0;
|
2022-02-09 04:20:59 +00:00
|
|
|
float remaining_time = 0;
|
2021-08-07 12:59:11 +00:00
|
|
|
std::string current_status;
|
|
|
|
std::string state [2];
|
2021-04-27 05:07:33 +00:00
|
|
|
int batt_count=0;
|
2021-04-29 23:19:53 +00:00
|
|
|
bool batt_check = false;
|
2022-02-09 04:20:59 +00:00
|
|
|
std::vector<float> current_now_vec = {};
|
2021-03-16 08:50:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern BatteryStats Battery_Stats;
|