You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
622 B
C++
28 lines
622 B
C++
#pragma once
|
|
#include "overlay.h"
|
|
#include "overlay_params.h"
|
|
#include <logging.h>
|
|
#include <vector>
|
|
#include <unordered_map>
|
|
#include <filesystem>
|
|
|
|
class BatteryStats{
|
|
public:
|
|
int numBattery();
|
|
void findFiles();
|
|
void update();
|
|
float getPower(int num);
|
|
float getPercent(int num);
|
|
bool isCharging();
|
|
bool fullCharge();
|
|
std::vector<std::string> battPath;
|
|
float current_watt = 0;
|
|
float current_percent = 0;
|
|
float bat_percent [2][2];
|
|
string current_status="";
|
|
string state [2];
|
|
|
|
};
|
|
|
|
extern BatteryStats Battery_Stats;
|