Commit Graph

2 Commits (972f3721ba0b7acdf1e8513e08bb34058bcc0d10)

Author SHA1 Message Date
D.R.racer 972f3721ba Add finer filament loaded states and improve unit tests
We need to know better where the filament is, a simple "filament loaded true/false"
does not correspond to the reality.
2021-09-29 13:30:11 +02:00
D.R.racer 53e48e0705 Change the semantics of load filament
Load filament performs feed to FINDA and retract:
- engage idler
- feed normal to FINDA with config::feedToFinda distance until FINDA triggers
- retract normal and as soon FINDA un-triggers move back to PTFE config::cuttingEdgeToFindaMidpoint
- disengage the idler

That implied introducing another substate machine - RetractFromFinda, which does the opposite
of FeedToFinda while also checking for the FINDA switching off while retracting filament.

Still, ToolChange and CutFilament need fixing with this change
2021-09-29 13:30:11 +02:00