save does not preserve pid_engaged #17
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Expectation: Last saved state is loaded upon power-on. Temperature servo continues after power interruption.
Observation: Many parameters from saved state are preserved after power cycle but
pid_engaged
status is not. It is reset tofalse
.I did not expect the device to be operated without control.
I need some time to make room in the config serialization because we already max out the available 128 bytes of EEPROM.
Fully autonomous operation is highly desirable. Once initial configuration is complete it will be rare to work with Thermostat interactively. Ideally this recovers after power failure and continue servoing.
There's also the option of ignoring the EEPROM and storing into the flash, like it's done in ARTIQ:
https://github.com/m-labs/artiq/blob/master/artiq/firmware/libboard_misoc/config.rs
This code implements a simple key-value store that minimizes the number of times the flash sector is erased.
@occheung may have looked into this on STM32 already. I can see this being used on multiple boards, so maybe we should split it from ARTIQ and make it a separate library.