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