Add motor parameter NVS storage #3

Open
opened 4 years ago by novirium · 0 comments
Owner

Control parameters for the 3 motors really need to be persistent over a power cycle, and so need to be loaded on reset and saved when modified. Probably just use the built in NVS driver provided by the ESP IDF.

The flash has an endurance of 10,000 - 100,000 cycles or so. The NVS module does some inherent wear levelling and also does a modification check for each write, so we should be safe enough to just write to NVS whenever a control paramter is changed.

Control parameters for the 3 motors really need to be persistent over a power cycle, and so need to be loaded on reset and saved when modified. Probably just use the built in [NVS](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/nvs_flash.html) driver provided by the ESP IDF. The flash has an endurance of 10,000 - 100,000 cycles or so. The NVS module does some inherent wear levelling and also does a modification check for each write, so we should be safe enough to just write to NVS whenever a control paramter is changed.
novirium added the [status] Available [type] Enhancement labels 4 years ago
Sign in to join this conversation.
Loading…
There is no content yet.