Commit Graph
9 Commits
Author SHA1 Message Date
Samuel Sadok 95994309ae fix bug where an invalid motor config could be loaded
Before this commit, if the NVM is deemed valid and but the subsequent config load fails (e.g. because of a checksum mismatch), the motor config could be left in an undefined state.

Also a variable user_config_loaded is added to indicate whether the device is using user-saved config or factory defaults.
2018-04-07 12:49:29 -07:00
Samuel Sadok c239427441 ensure sane config if config CRC16 mismatches 2018-03-11 20:04:53 -07:00
Oskar Weigl 898d9c64b4 fix saving of calibrated flag 2018-03-02 23:05:40 -08:00
Samuel Sadok 50436709db Reorganize config parameters
All configurable parameters are now exposed on the protocol in objects called "[...].config". Those are the same parameters that are saved to NVM.
2018-02-25 19:59:29 -08:00
Samuel Sadok 36b451a278 add version number for NVM config, add code comments 2018-02-25 15:29:56 -08:00
Oskar Weigl 368b4d5cbb add axis to config 2018-02-24 00:24:47 -08:00
Oskar Weigl 12c72cf284 change how default configs are done for now 2018-02-23 23:36:46 -08:00
Samuel Sadok c200bf495e add note about firmware update 2018-02-22 19:30:51 -08:00
Samuel Sadok b672d8e0ef Add persistent storage of certain motor parameters.
The persistent storage can be controlled through the "save_config" and "reset" RPC functions. If a valid configuration is present, it's automatically loaded on startup. For now only a few parameters are saved (see config.cpp).
2018-02-22 19:08:43 -08:00