Update Bat Calibration

This commit is contained in:
Carsten Schmiemann 2018-09-27 02:58:16 +02:00
parent 69b5cfebc1
commit e12fe815b7
5 changed files with 5 additions and 5 deletions

Binary file not shown.

View file

@ -1 +1 @@
ed29a20d4d5440e7bc8a8339197df0ad37810755 038a2af16b7c85a15994c1dfcc3294cf5461948a

View file

@ -1,6 +1,6 @@
{ {
"terminal.integrated.env.windows": { "terminal.integrated.env.windows": {
"PATH": "C:\\Users\\Debug\\.platformio\\penv\\Scripts;C:\\Users\\Debug\\.platformio\\penv;C:\\Program Files (x86)\\SIEMENS\\S7-PCT\\bin;C:\\Program Files (x86)\\Common Files\\Siemens\\Sqlany;C:\\Program Files (x86)\\Siemens\\Step7\\S7bin;C:\\Program Files\\Common Files\\Siemens\\Automation\\Simatic OAM\\bin;C:\\Program Files (x86)\\LonWorks\\Bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\AWRoot\\bin\\common;C:\\AWRoot\\bin\\lib;C:\\Program Files\\PKWARE\\pkzipc;C:\\Program Files\\bladeRF\\x64;C:\\Program Files\\Microsoft VS Code\\bin;;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Nmap;C:\\Program Files (x86)\\SIEMENS\\S7-PCT\\bin;C:\\Program Files (x86)\\Common Files\\Siemens\\Sqlany;C:\\Program Files (x86)\\Siemens\\Step7\\S7bin;C:\\Program Files\\Common Files\\Siemens\\Automation\\Simatic OAM\\bin;C:\\Program Files (x86)\\LonWorks\\Bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Git\\cmd;C:\\AWRoot\\bin\\common;C:\\AWRoot\\bin\\lib;C:\\Program Files\\PKWARE\\pkzipc;C:\\Program Files\\bladeRF\\x64;C:\\Program Files\\Microsoft VS Code\\bin;;C:\\Program Files (x86)\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Nmap", "PATH": "C:\\Users\\carsten\\.platformio\\penv\\Scripts;C:\\Users\\carsten\\.platformio\\penv;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\bladeRF\\x64;C:\\Program Files\\PothosSDR\\bin;C:\\Users\\carsten\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\PuTTY\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\bladeRF\\x64;C:\\Program Files\\PothosSDR\\bin;C:\\Users\\carsten\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Nmap",
"PLATFORMIO_CALLER": "vscode" "PLATFORMIO_CALLER": "vscode"
}, },
"files.associations": { "files.associations": {

View file

@ -16,5 +16,5 @@ lib_deps = ArduinoINA219, Wire, TaskScheduler, LiquidCrystal_I2C, ESPAsyncWifiMa
board_build.partitions = partitions.csv board_build.partitions = partitions.csv
monitor_port = COM6 monitor_port = COM6
monitor_speed = 115200 monitor_speed = 115200
upload_port = 10.11.0.44 ;upload_port = 10.11.0.44
upload_flags = "--port=1337 --auth=powerlyzer" ;upload_flags = "--port=1337 --auth=powerlyzer"

View file

@ -520,7 +520,7 @@ void readCurrent() {
void read_bat() { void read_bat() {
battery_average += (analogRead(adc_battery_pin) - battery_average) * 0.3; battery_average += (analogRead(adc_battery_pin) - battery_average) * 0.3;
battery_voltage = map(battery_average,0,4096,0,450)/100.0; battery_voltage = map(battery_average,0,3480,0,440)/100.0;
if (battery_voltage < 3.3 && battery_low == false) { if (battery_voltage < 3.3 && battery_low == false) {
battery_low = true; battery_low = true;
lcd.noBacklight(); lcd.noBacklight();