Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
retract_from_finda.h
Go to the documentation of this file.
1 #pragma once
3 #include <stdint.h>
4 
5 namespace logic {
6 
16  enum {
17  EngagingIdler,
18  UnloadBackToPTFE,
19  OK,
20  Failed
21  };
22 
23  inline constexpr RetractFromFinda()
24  : state(OK) {}
25 
27  void Reset();
28 
30  bool Step();
31 
35  inline uint8_t State() const { return state; }
36 
37 private:
38  uint8_t state;
39 };
40 
41 } // namespace logic
The logic namespace handles the application logic on top of the modules.
Definition: application.h:8
Retract filament from FINDA to PTFE.
Definition: retract_from_finda.h:14
void Reset()
Restart the automaton.
Definition: retract_from_finda.cpp:13
uint8_t State() const
Definition: retract_from_finda.h:35
bool Step()
Definition: retract_from_finda.cpp:20