public C_State() { prog = e_stateProg.started; mot = e_stateMotor.initializing; Spi = e_stateSPI.disconnected; //cam = e_stateWebCam.initializing; baslerCam = e_stateBaslerCam.initializing; }
public static void SET_state(object _state) { if (_state is e_stateBaslerCam) { baslerCam = (e_stateBaslerCam)_state; } else if (_state is e_stateMotor) { mot = (e_stateMotor)_state; } else if (_state is e_stateProg) { prog = (e_stateProg)_state; } else if (_state is e_stateSPI) { Spi = (e_stateSPI)_state; } }
public static bool FURTHER(e_stateBaslerCam _comparedState) { return(FURTHER((object)_comparedState, (object)baslerCam)); }