Skip to content

Commit

Permalink
always use the new pump start logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jun 26, 2024
1 parent e70df58 commit 867082f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
6 changes: 0 additions & 6 deletions firmware/boards/f0_module/wideband_board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
5 changes: 1 addition & 4 deletions firmware/pump_control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
6 changes: 6 additions & 0 deletions firmware/wideband_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 867082f

Please sign in to comment.