5 Commits

Author SHA1 Message Date
jonny_l480
84c88e8f02 Fix deadlock in windingWidth, Handle 0 width, optimize UI
guide-stepper:
- fix deadlock when editing winding width
- fix behaivor when windingWidth is set to 0 (disable guide)

control:
- add dead time to prevent setTarget when exiting setWindingWidth with buttons
- fix typo and conditons
- increase max winding width
- optimize display text
2024-03-16 11:47:20 +01:00
jonny
c049da3583 Add button combination to set custom windingWidth with poti
control:
    - Add Button combination SET+PRESET1 to set winding width with potentiometer
    - Add case and display output in that state

config: move config macros from guide_stepper to common config

guide-stepper:
    - outsource config definitions
    - add functions to get and set variable winding width
    - add mutex
2024-03-15 09:49:28 +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
jonny
4aab1e1343 Outsource global variables, Optimize comments
- outsource global variables and objects
    - move from config.hpp to global.cpp / hpp
    - rename config.hpp, thus change all includes
- re-arrange includes -> in source files instead of header

- optimize / make function comment titles more consistent
- optimize comments overall

- add several temporary files to gitignore
- fix unused variable compiler warnings
2024-03-10 12:55:13 +01:00