3 Commits

Author SHA1 Message Date
jonny
1d4e83a2ea Store encoder-steps at shutdown, consider at startup
shutdown:
    - add functions to read/write last encoder steps from nvs
    - store encoder steps at shutdown

guide:
    - add function to calculate layer count from cable length
    - read last encoder-steps at startup
    - if length >2m calculate layers, dont home
    - home at move-to-zero when not done at startup

encoder library:
    - add function to set encoder steps

control:
    - read last encoder-steps at startup
    - apply last steps if >2m
2024-03-14 16:06:20 +01:00
jonny_l480
9dfca6f6c3 Fix ENCODER_TEST, Calibrate length measurement
config:
    - calibrate length measurement

control:
    - Fix ENCODER_TEST
        - syntax error
        - Add beep at 0.5m
2024-03-13 14:56:27 +01:00
jonny
1dd8388769 Add task shutDownDetection, save last pos to nvs, optimize auto-home
shutdown.cpp/hpp:
    - repeatedly check supply voltage
    - save value to nvs when dropping below threshold
    - provide function to read lastPos from nvs

guide-stepper:
    - auto-home considers stored last position in nvs

main:
    - add new task shutDownDetection

config:
    - slightly increase stepper speed
2024-03-12 23:58:15 +01:00