clough42 / electronic-leadscrew

Lathe electronic leadscrew controller
MIT License
311 stars 116 forks source link

Default metric/ imperial at power on #100

Open asm308 opened 3 years ago

asm308 commented 3 years ago

A little quality of life suggestion. I've modified my setup to start up in metric mode as I have. Metric lathe, but the firmware could determine this based upon whether a metric or imperial leadscrew is defined in the configuration.h

J642 commented 3 years ago

How did you modified so you start in metric

asm308 commented 3 years ago

Hi If you look in the UserInterface.cpp file at around line 64 you will see a line that says this->metric=false Change false true and recompile. If I was doing it for a general solution I’d have set it depending on whether LEADSCREW_HMM was defined, but being a bit lazy

clough42 commented 3 years ago

This is on my list of features to add. Though rather than making it configurable, I was planning on making the ELS remember its settings in the EEPROM flash so if you set it to metric, it'll still be in metric next time you turn it on.

asm308 commented 3 years ago

Yeah that would be a better solution. I’ll keep an eye out for it. Thanks