Add coordinated homing for both motors with toggle button

- Add state machine for coordinated movement (REV/FWD toggle)
- Each motor stops independently on stall detection
- Add HOME BOTH button in web UI with state-based styling
- Add /homing endpoint for programmatic control
- Update /status endpoint with coordinated state info
- Create homing.h header for function declarations
This commit is contained in:
devdesk
2026-02-06 15:17:41 +02:00
parent f157d3abc5
commit 389182a9db
3 changed files with 191 additions and 5 deletions

10
include/homing.h Normal file
View File

@@ -0,0 +1,10 @@
#ifndef HOMING_H
#define HOMING_H
// Coordinated movement functions (defined in main.cpp)
int toggleCoordinatedMovement(int speed);
void stopCoordinatedMovement();
int getCoordinatedState();
bool isCoordinatedMovementDone();
#endif