mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-07-21 09:02:43 +02:00
battery monitor update
This commit is contained in:
@@ -47,12 +47,10 @@ WiFi_AP *currentWiFi = &Config.wifiAPs[myWiFiAPIndex];
|
|||||||
|
|
||||||
bool isUpdatingOTA = false;
|
bool isUpdatingOTA = false;
|
||||||
uint32_t lastBatteryCheck = 0;
|
uint32_t lastBatteryCheck = 0;
|
||||||
String batteryVoltage; // ????
|
|
||||||
bool backUpDigiMode = false;
|
bool backUpDigiMode = false;
|
||||||
bool modemLoggedToAPRSIS = false;
|
bool modemLoggedToAPRSIS = false;
|
||||||
|
|
||||||
bool shouldSleepLowVoltage = false;
|
|
||||||
|
|
||||||
std::vector<ReceivedPacket> receivedPackets;
|
std::vector<ReceivedPacket> receivedPackets;
|
||||||
|
|
||||||
String firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine;
|
String firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine;
|
||||||
|
|||||||
@@ -3,12 +3,13 @@
|
|||||||
#include "boards_pinout.h"
|
#include "boards_pinout.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
extern Configuration Config;
|
extern Configuration Config;
|
||||||
extern uint32_t lastBatteryCheck;
|
extern uint32_t lastBatteryCheck;
|
||||||
extern bool shouldSleepLowVoltage;
|
|
||||||
|
|
||||||
float adcReadingTransformation = (3.3/4095);
|
bool shouldSleepLowVoltage = false;
|
||||||
float voltageDividerCorrection = 0.288;
|
|
||||||
|
float adcReadingTransformation = (3.3/4095);
|
||||||
|
float voltageDividerCorrection = 0.288;
|
||||||
|
|
||||||
// for External Voltage Measurment (MAX = 15Volts !!!)
|
// for External Voltage Measurment (MAX = 15Volts !!!)
|
||||||
float R1 = 100.000; //in Kilo-Ohms
|
float R1 = 100.000; //in Kilo-Ohms
|
||||||
|
|||||||
Reference in New Issue
Block a user