MangoHud/src/battery.h

23 lines
550 B
C
Raw Normal View History

2021-03-16 08:50:07 +00:00
#pragma once
#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();
float getPower();
float getPercent();
2022-02-09 04:20:59 +00:00
float getTimeRemaining();
std::string battPath[2];
2021-03-16 08:50:07 +00:00
float current_watt = 0;
float current_percent = 0;
2022-02-09 04:20:59 +00:00
float remaining_time = 0;
std::string current_status;
std::string state [2];
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;