always use the new pump start logic

This commit is contained in:
Matthew Kennedy 2024-06-25 23:40:39 -07:00
parent e70df58290
commit 867082f276
3 changed files with 7 additions and 10 deletions

View File

@ -17,9 +17,3 @@
// Nernst voltage & ESR sense
// *******************************
#define VM_RESISTOR_VALUE (10)
// *******************************
// Hack: allow pump driving above target temperature
// minus this offset to avoid Vnerns voltage clamp near 0V
// *******************************
#define START_PUMP_TEMP_OFFSET (200.0)

View File

@ -39,10 +39,7 @@ static void PumpThread(void*)
// Only actuate pump when running closed loop!
if (heater.IsRunningClosedLoop() ||
#ifdef START_PUMP_TEMP_OFFSET
(sampler.GetSensorTemperature() >= heater.GetTargetTemp() - START_PUMP_TEMP_OFFSET) ||
#endif
(0))
(sampler.GetSensorTemperature() >= heater.GetTargetTemp() - START_PUMP_TEMP_OFFSET))
{
float nernstVoltage = sampler.GetNernstDc();

View File

@ -48,3 +48,9 @@
#define HEATER_BATTERY_ON_VOLTAGE 9.5
// mininal battery voltage to continue heating
#define HEATER_BATTETY_OFF_VOLTAGE 8.5
// *******************************
// Start driving the pump just before we're at target temperature
// minus this offset to avoid Vnerns voltage clamp near 0V
// *******************************
#define START_PUMP_TEMP_OFFSET (200.0)