From 314ba0d5f1dd09a8d56e1cf8c24e78bd200bbc80 Mon Sep 17 00:00:00 2001 From: Wojciech Kaczmarski <44336093+sp5wwp@users.noreply.github.com> Date: Wed, 20 Nov 2019 18:42:17 +0100 Subject: [PATCH] Add files via upload --- rpi/pi/fans/fan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpi/pi/fans/fan.py b/rpi/pi/fans/fan.py index 6fc311e..763369d 100644 --- a/rpi/pi/fans/fan.py +++ b/rpi/pi/fans/fan.py @@ -173,8 +173,9 @@ while True: u_bat/=1000.0 i_bat/=1000.0 u_psu*=14.46/1576.5 - u_bat*=14.51/1576.5 #might need to change coeffs + u_bat*=14.51/1576.5*12.67/12.57 #might need to change coeffs i_bat/=100.0 + i_bat*=63.0/50.0; #overwrite with open('/var/www/html/vals.txt', 'r') as file: