SAFETY-12: a minimum loop cadence - the loop thinks on a clock, not only when the number moves #7

Merged
admin merged 4 commits from safety-12-loop-floor into release/1.0 2026-08-28 21:18:21 +02:00
Showing only changes of commit 96a808a057 - Show all commits
+6 -1
View File
@@ -52,9 +52,14 @@ Run the checks before deploying. No framework needed:
```bash
cd goodwe_controller
python3 test_control.py && python3 test_maintenance.py && python3 test_arbiter.py
python3 test_control.py && python3 test_maintenance.py && python3 test_arbiter.py \
&& python3 test_validate.py && python3 test_p1.py && python3 test_loop.py
```
⚠️ `test_loop.py` takes about **35 seconds** and that is not a bug. It drives the real
control loop, which sleeps 1 s a tick, to prove a wall-clock property about it
(SAFETY-12); mocking the clock there would leave the assertion testing the mock.
---
## 3. Known broken / unfinished