aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules
diff options
context:
space:
mode:
authorRonen Sberlo <ronen.s@twine-s.com>2020-11-04 17:09:28 +0200
committerRonen Sberlo <ronen.s@twine-s.com>2020-11-04 17:09:28 +0200
commitf2698a355c2d63916e80d9dc3df0344c3f7635ae (patch)
tree6600d0f5462b4601713cf7335272a97233c1cb0b /Software/Embedded_SW/Embedded/Modules
parent71e6a2bcd4082c6c85eeeb6cd3048b12ed149500 (diff)
downloadTango-f2698a355c2d63916e80d9dc3df0344c3f7635ae.tar.gz
Tango-f2698a355c2d63916e80d9dc3df0344c3f7635ae.zip
flow equation
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c
index 9c8ab1e12..f61639edb 100644
--- a/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c
+++ b/Software/Embedded_SW/Embedded/Modules/Heaters/Heaters_Blowers.c
@@ -51,7 +51,7 @@
#define ARC_ALARM_LIMIT 3
#define PRESSURE_SENSOR_CP 0.269
-#define PRESSURE_SENSOR_B 1.6668
+#define PRESSURE_SENSOR_B 0.45
extern uint16_t Head_Fan_Tach[2];
extern uint8_t Head_Fan_PWM_Command[2];
@@ -377,7 +377,7 @@ double PressureSensorGetPressure(uint8_t SensorId)
V0 = PressureSensorV0[FanId];
Vm = (double)(MillisecGetTemperatures(SensorId));
Vm /= 10.0;
- Q = (sqrt(Vm - V0 + 22) - PRESSURE_SENSOR_B) * PRESSURE_SENSOR_CP;
+ Q = sqrt(Vm - V0 + 22) * PRESSURE_SENSOR_CP - PRESSURE_SENSOR_B;
return Q;
}