intelligent-agent / redeem

Firmware for Replicape
http://wiki.thing-printer.com/index.php?title=Redeem
GNU General Public License v3.0
36 stars 44 forks source link

handle multiple config versions #29

Open ajmirsky opened 6 years ago

ajmirsky commented 6 years ago

With redeem constantly evolving, configuration files are changing such that old ones could break redeem. This pull request enables redeem to read in (and translate) older configuration files into whatever redeem is using as the latest configuration set. Implemented per the proposal:

https://docs.google.com/presentation/d/12VBJyAf_-Wa2F0C4hafdiJfBIZr64CXT95xBcniJcBU/edit?usp=sharing

By defining a "canonical" set of configuration settings, there are always known defaults. This means that a config file with incorrect syntax won't prevent redeem from starting.

The strategy for converting delta parameters was to first calculate the column positions using the equations on master based on tangential/radial. Then solving for the angular/radial components using the latest algorithm.

ajmirsky commented 6 years ago

Still working on getting the existing test suite to pass. Assuming there will be feedback so wanted to get the discussion going early.