Closed kbahey closed 6 years ago
I'm not liking this one.
The benefit here is that when someone asks a question (like Pete yesterday), you only need the config to troubleshoot it. No spreadsheets. You can use your own spreadsheets. You have the raw data right there to debug it.
It also makes it obvious for those configuring stuff (again, Pete asked about gear ratios before we pointed him to the spreadsheet).
Still don't like it.
Much more often they are confused about micro-step mode switching and programming modes. But that's a difficult thing to make "simple", too many darn permutations.
The spreadsheet will still be there for what-if and such. Not replacing it. In fact, I was thinking of having a doc directory in OnStep github and committing the spreadsheet there, so people have less places to visit and less (virtual) parts to source.
But you are against it, so let us shelf that ...
Regarding microsteps and mode switching, see my email in the Pete MiniPCB thread. It addresses exactly this issue, and I suggested improvements there. I can commit them and update the wiki if you agree.
In order to reduce confusion, we should let the machine derive the values rather than calculate them externally.
The worksheet will still be used for planning, and doing 'what if' scenarios on various gear ratios, microsteps, ...etc. and to ensure that the values chosen are sane, and not exceed the hard limits.
So, the configuration Config.xxx.h can start with something like this:
Then in Globals.h, we can add the following snippet:
If you like this idea, I can create pull requests for Global.h and all the configs.