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
6 lines
168 B
C++
6 lines
168 B
C++
|
|
void task_shutDownDetection(void *pvParameter);
|
|
|
|
// read last axis position in steps from nvs
|
|
// returns -1 when reading from nvs failed
|
|
int nvsReadLastAxisPosSteps(); |