MakerLabs ACM
MachineActorState Struct Reference

Public Member Functions

 MachineActorState (int _interlock_pin=21, int _relay_pin=25, int _motor_x_pin=13, int _motor_y_pin=14)
 
bool _set_output (int pin, bool enabled)
 

Public Attributes

int interlock_pin
 
int relay_pin
 
int motor_x_pin
 
int motor_y_pin
 
TimeDuration last_motor_pulse_timestamp = 0s
 
TimeDuration last_motor_activity_timestamp = 0s
 
int last_motor_pulse_count = 0
 
int motor_activity_seconds = 0
 
TimeDuration max_job_start_interval = 25s
 
TimeDuration max_job_end_interval = 5s
 
int max_motor_pulse_count = 1024
 
int threshold_motor_pulse_count = 25
 
TRef motor_activity_check_tref = NullTRef
 
TRef disable_interlock_tref = NullTRef
 
TRef disable_relay_tref = NullTRef
 

Static Public Attributes

static constexpr bool RELAY_ON = true
 
static constexpr bool RELAY_OFF = false
 
static constexpr bool INTERLOCK_ON = false
 
static constexpr bool INTERLOCK_OFF = true
 

Constructor & Destructor Documentation

◆ MachineActorState()

MachineActorState::MachineActorState ( int  _interlock_pin = 21,
int  _relay_pin = 25,
int  _motor_x_pin = 13,
int  _motor_y_pin = 14 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ _set_output()

bool MachineActorState::_set_output ( int  pin,
bool  enabled 
)
inline

Member Data Documentation

◆ disable_interlock_tref

TRef MachineActorState::disable_interlock_tref = NullTRef

◆ disable_relay_tref

TRef MachineActorState::disable_relay_tref = NullTRef

◆ INTERLOCK_OFF

constexpr bool MachineActorState::INTERLOCK_OFF = true
static

◆ INTERLOCK_ON

constexpr bool MachineActorState::INTERLOCK_ON = false
static

◆ interlock_pin

int MachineActorState::interlock_pin

◆ last_motor_activity_timestamp

TimeDuration MachineActorState::last_motor_activity_timestamp = 0s

◆ last_motor_pulse_count

int MachineActorState::last_motor_pulse_count = 0

◆ last_motor_pulse_timestamp

TimeDuration MachineActorState::last_motor_pulse_timestamp = 0s

◆ max_job_end_interval

TimeDuration MachineActorState::max_job_end_interval = 5s

◆ max_job_start_interval

TimeDuration MachineActorState::max_job_start_interval = 25s

◆ max_motor_pulse_count

int MachineActorState::max_motor_pulse_count = 1024

◆ motor_activity_check_tref

TRef MachineActorState::motor_activity_check_tref = NullTRef

◆ motor_activity_seconds

int MachineActorState::motor_activity_seconds = 0

◆ motor_x_pin

int MachineActorState::motor_x_pin

◆ motor_y_pin

int MachineActorState::motor_y_pin

◆ RELAY_OFF

constexpr bool MachineActorState::RELAY_OFF = false
static

◆ RELAY_ON

constexpr bool MachineActorState::RELAY_ON = true
static

◆ relay_pin

int MachineActorState::relay_pin

◆ threshold_motor_pulse_count

int MachineActorState::threshold_motor_pulse_count = 25

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