(DONE) Boiling Pot (The Beginning)¶
Standup Records¶
2023-11-20¶
Complete tests (define a few more?)
Pull request
Team to continue on (DONE) Switch Interface
2023-12-14¶
Should be complete, no?
Requirements¶
Write a program bin/boiling-pot.cpp
that implements a boiling
pot. Usage should be somewhat like so:
$ bin/boiling-pot /sys/bus/w1/devices/28-02131d959eaa/temperature 20
$ bin/boiling-pot /sys/class/hwmon/hwmon2/temp1_input 20
$ bin/boiling-pot ~/manually-written-file 20
Implementation¶
Attention
This task has a dependency on :doc:switch-interface
! (A boiling
pot wants to use a real switch, not only a mocking one.)
Before you implement a switch interface (and derive mocking and real switches from it), talk to the guys from SysFS GPIO Switch. Or else it may happen that both groups do duplicate work which results in Git conflicts!
Write a
class BoilingPot
that is used in the program. That class will likely use aHysteresis
internally to implement the control logic. (That class -Hysteresis
- takes aSensor
and aSwitch
object.)class BoilingPot
has a “temperature wheel” (a control knob) that steers that desired temperature of the pot.Lets hardcode the hysteresis
low
/high
range for the time being. This control can be added later once we need it.
Testing¶
Write unit tests to cover the all functionality
Future (Not Part Of This Development Cycle)¶
Temperature display ⟶ later (we have
LEDStripeDisplay
, but that is-not-aDisplay
)Modifiable low/high hysteresis settings
Error reporting (“unreasonable sensor value”?)
Status reporting (“switch on”, “switch off”, for example)