Example #1
0
        public FormMain()
        {
            InitializeComponent();

            communicationHandler = new ArduinoCommunicationHandler();
            motorControllerList = new MotorControllerList(communicationHandler);
            boat = new Boat(communicationHandler);
            xboxControllerManager = new XBoxControllerManager();

            string[] portlist = communicationHandler.getCOMPorts();

            foreach (String s in portlist)
            {
                comboBoxCOMPort.Items.Add(s);
            }
        }