de60863
Fan safety software replay
This is an offline host simulation, not a hardware control surface. trace.c calls the actual portable controller and tach decoder with synthetic voltage, latch, temperature, qualification and tach inputs. It never connects to an instrument. The production control-panel remains disconnected by default and is separate from this replay.
Compile from the project root:
cc -std=c11 -Wall -Wextra -Werror -fsanitize=address,undefined demos/fan-safety/trace.c firmware/load_core.c firmware/fan_tach.c -lm -o /tmp/adom-load-fan-demo
/tmp/adom-load-fan-demo > demos/fan-safety/trace.json
python3 -m http.server 45955 --directory demos/fan-safety
The synthetic latch is low when ARM is requested at 100 ms, then high at 101 ms. A stale high latch is rejected by the controller tests.
At 2000 ms synthetic tach pulses stop. At 2013 ms the decoder invalidates feedback and the policy disables the load command. Pulses return at 3000 ms; after qualification the fan feedback becomes valid again, but the fault remains latched. Assertions verify the trip and absence of automatic restart. These times describe this input schedule and host model only; they do not establish physical shutdown latency or cooling performance.
The browser replays saved trace values at 1× simulation time. It does not execute firmware or invent readings. Video capture has its own timing limitations; the displayed simulation clock is authoritative for the replay.
# Fan safety software replay
This is an offline host simulation, not a hardware control surface. `trace.c` calls the actual portable controller and tach decoder with synthetic voltage, latch, temperature, qualification and tach inputs. It never connects to an instrument. The production control-panel remains disconnected by default and is separate from this replay.
Compile from the project root:
```
cc -std=c11 -Wall -Wextra -Werror -fsanitize=address,undefined demos/fan-safety/trace.c firmware/load_core.c firmware/fan_tach.c -lm -o /tmp/adom-load-fan-demo
/tmp/adom-load-fan-demo > demos/fan-safety/trace.json
python3 -m http.server 45955 --directory demos/fan-safety
```
The synthetic latch is low when ARM is requested at 100 ms, then high at 101 ms. A stale high latch is rejected by the controller tests.
At 2000 ms synthetic tach pulses stop. At 2013 ms the decoder invalidates feedback and the policy disables the load command. Pulses return at 3000 ms; after qualification the fan feedback becomes valid again, but the fault remains latched. Assertions verify the trip and absence of automatic restart. These times describe this input schedule and host model only; they do not establish physical shutdown latency or cooling performance.
The browser replays saved trace values at 1× simulation time. It does not execute firmware or invent readings. Video capture has its own timing limitations; the displayed simulation clock is authoritative for the replay.