2023-07-06 00:14:26 -04:00
|
|
|
#ifndef BATTERY_UTILS_H_
|
|
|
|
|
#define BATTERY_UTILS_H_
|
|
|
|
|
|
|
|
|
|
#include <Arduino.h>
|
|
|
|
|
|
2024-02-25 10:53:16 -03:00
|
|
|
|
2023-07-06 00:14:26 -04:00
|
|
|
namespace BATTERY_Utils {
|
|
|
|
|
|
2024-07-08 23:02:45 -04:00
|
|
|
void adcCalibration();
|
|
|
|
|
void adcCalibrationCheck();
|
|
|
|
|
void setup();
|
2024-05-24 13:05:28 -04:00
|
|
|
float checkInternalVoltage();
|
|
|
|
|
float checkExternalVoltage();
|
2024-05-24 14:24:40 -04:00
|
|
|
void checkIfShouldSleep(); // ????
|
|
|
|
|
void startupBatteryHealth();
|
2023-07-06 00:14:26 -04:00
|
|
|
|
2024-10-05 08:48:08 -03:00
|
|
|
String generateEncodedTelemetryBytes(float value, bool firstBytes, byte voltageType);
|
|
|
|
|
String generateEncodedTelemetry();
|
2024-09-22 13:34:13 -03:00
|
|
|
|
2023-07-06 00:14:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|