Beispiel #1
0
 public MarlinPrinterControllerService(
     ISerialPortAdapter serialPortAdapter,
     IPrinterPacketParser printerPacketParser)
 {
     _serialPortAdapter   = serialPortAdapter;
     _printerPacketParser = printerPacketParser;
     _printerPacketParser.PacketComplete += PacketParser_PacketComplete;
     _commandStack = new Stack <PrinterCommand>();
 }
Beispiel #2
0
        public ConnectionDialog()
        {
            InitializeComponent();

#if SIMULATOR
            _serialPortAdapter = new SimulatedSerialPortAdapter();
#else
            _serialPortAdapter = new SerialPortAdapter();
#endif
        }
        public ConsoleForm()
        {
            InitializeComponent();

#if SIMULATOR
            _serialPortAdapter = new SimulatedSerialPortAdapter();
#else
            _serialPortAdapter = new SerialPortAdapter();
#endif
        }
        public ConnectionDialog()
        {
            InitializeComponent();

            #if SIMULATOR
            _serialPortAdapter = new SimulatedSerialPortAdapter();
            #else
            _serialPortAdapter = new SerialPortAdapter();
            #endif
        }
        public ConsoleForm()
        {
            InitializeComponent();

            #if SIMULATOR
            _serialPortAdapter = new SimulatedSerialPortAdapter();
            #else
            _serialPortAdapter = new SerialPortAdapter();
            #endif
        }
Beispiel #6
0
        public MbedPortService(ISerialPortAdapter serialPortAdapter, IWmiMbedHelper wmiMbedHelper, string comPort, int baudRate, ICarControllerSettings settings)
        {
            _serialPortAdapter = serialPortAdapter;

            _comPort  = comPort;
            _baudRate = baudRate;

            _settings = settings;

            _wmiMbedHelper = wmiMbedHelper;
            _wmiMbedHelper.MbedAttachedEvent += WmiMbedHelperOnMbedAttachedEvent;
            _wmiMbedHelper.Start();
        }
Beispiel #7
0
        public MbedPortService(ISerialPortAdapter serialPortAdapter, IWmiMbedHelper wmiMbedHelper, string comPort, int baudRate, ICarControllerSettings settings)
        {
            _serialPortAdapter = serialPortAdapter;

            _comPort = comPort;
            _baudRate = baudRate;

            _settings = settings;

            _wmiMbedHelper = wmiMbedHelper;
            _wmiMbedHelper.MbedAttachedEvent += WmiMbedHelperOnMbedAttachedEvent;
            _wmiMbedHelper.Start();
        }
Beispiel #8
0
 public MbedPortService(ISerialPortAdapter serialPortAdapter, IWmiMbedHelper wmiMbedHelper, ICarControllerSettings settings) : this(serialPortAdapter, wmiMbedHelper, "COM3", 115200, settings)
 {
 }
Beispiel #9
0
 public MbedPortService(ISerialPortAdapter serialPortAdapter, IWmiMbedHelper wmiMbedHelper, ICarControllerSettings settings)
     : this(serialPortAdapter, wmiMbedHelper, "COM3", 115200, settings)
 {
 }