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

            this.WindowState = FormWindowState.Maximized;

            //Load serial server:
            serSock = new serialServer();
            serSock.setLogFunction(log);
            serSock.setMessageHandler(messageHandlerSocket);

            roomba = new clsRoomba(log, send);

            this.initDrawers();

            //roomba.uncontrolledTest(2000, 2000);

            // DEFAULT, since Koen can't divide by 0. Sucker... ;) ============= \\
            roomba.setSensorValue(24, 15);
            roomba.setSensorValue(25, 65535);
            roomba.setSensorValue(26, 65535);
            // ============= \\
        }
Example #2
0
        public frmMain()
        {
            InitializeComponent();

            this.WindowState = FormWindowState.Maximized;

            //Load serial server:
            serSock = new serialServer();
            serSock.setLogFunction(log);
            serSock.setMessageHandler(messageHandlerSocket);

            roomba = new clsRoomba(log, send);

            this.initDrawers();

            //roomba.uncontrolledTest(2000, 2000);

            // DEFAULT, since Koen can't divide by 0. Sucker... ;) ============= \\
            roomba.setSensorValue(24, 15);
            roomba.setSensorValue(25, 65535);
            roomba.setSensorValue(26, 65535);
            // ============= \\
        }