Prusa-MMU-Private
PrusaMultiMaterialUpgradev3firmwareforMK3SMK4
Public Types | Public Member Functions | List of all members
logic::RetractFromFinda Struct Reference

Retract filament from FINDA to PTFE. More...

#include <retract_from_finda.h>

Public Types

enum  { EngagingIdler , UnloadBackToPTFE , OK , Failed }
 internal states of the state machine
 

Public Member Functions

void Reset ()
 Restart the automaton.
 
bool Step ()
 
uint8_t State () const
 

Detailed Description

Retract filament from FINDA to PTFE.

Continuously pulls filament by a fixed length (originally 600 steps) + verifies FINDA is switched OFF while performing the move Steps:

Member Function Documentation

◆ State()

uint8_t logic::RetractFromFinda::State ( ) const
inline

This method may be used to check the result of the automaton

Returns
OK if everything went OK and FINDA triggered
Failed if the FINDA didn't trigger

◆ Step()

bool logic::RetractFromFinda::Step ( )
Returns
true if the state machine finished its job, false otherwise

The documentation for this struct was generated from the following files: