We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bb5056 commit 4125038Copy full SHA for 4125038
Firmware/RTK_Surveyor/System.ino
@@ -342,9 +342,19 @@ void updateBattery()
342
//And outputs a serial message to USB
343
void checkBatteryLevels()
344
{
345
- battLevel = lipo.getSOC();
346
- battVoltage = lipo.getVoltage();
347
- battChangeRate = lipo.getChangeRate();
+ if (online.battery == true)
+ {
+ battLevel = lipo.getSOC();
348
+ battVoltage = lipo.getVoltage();
349
+ battChangeRate = lipo.getChangeRate();
350
+ }
351
+ else
352
353
+ //False numbers but above system cut-off level
354
+ battLevel = 10;
355
+ battVoltage = 3.7;
356
+ battChangeRate = 0;
357
358
359
Serial.printf("Batt (%d%%): Voltage: %0.02fV", battLevel, battVoltage);
360
0 commit comments