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.
23 lines
550 B
C++
23 lines
550 B
C++
#pragma once
|
|
#include <string>
|
|
|
|
class BatteryStats{
|
|
public:
|
|
void numBattery();
|
|
void update();
|
|
float getPower();
|
|
float getPercent();
|
|
float getTimeRemaining();
|
|
std::string battPath[2];
|
|
float current_watt = 0;
|
|
float current_percent = 0;
|
|
float remaining_time = 0;
|
|
std::string current_status;
|
|
std::string state [2];
|
|
int batt_count=0;
|
|
bool batt_check = false;
|
|
std::vector<float> current_now_vec = {};
|
|
};
|
|
|
|
extern BatteryStats Battery_Stats;
|