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

Unload to FINDA "small" state machine. More...

#include <unload_to_finda.h>

Public Types

enum  {
  EngagingIdler , UnloadingToFinda , WaitingForFINDA , OK ,
  FailedFINDA , FailedFSensor
}
 internal states of the state machine
 

Public Member Functions

void Reset (uint8_t maxTries)
 
bool Step ()
 
uint8_t State () const
 

Detailed Description

Unload to FINDA "small" state machine.

"small" state machines will serve as building blocks for high-level commands/operations

Member Function Documentation

◆ Reset()

void logic::UnloadToFinda::Reset ( uint8_t  maxTries)

Restart the automaton

Parameters
maxTriesmaximum number of retried attempts before reporting a fail

◆ State()

uint8_t logic::UnloadToFinda::State ( ) const
inline
Returns
internal state of the state machine

◆ Step()

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

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