Example #1
0
        /// <summary>
        /// Sets TestMode on or off. Some commands can only be run in TestMode.
        /// See http://www.neatorobotics.com/programmers-manual/table-of-robot-application-commands/detailed-command-descriptions/#TestMode for more info.
        /// </summary>
        /// <param name="flag">Turns test mode on/off.</param>
        public void TestMode(TestModeState flag)
        {
            if (flag == TestModeState.On)
            {
                this.neato.TestMode = true;
            }
            else
            {
                this.neato.TestMode = false;
            }

            this.neato.Connection.SendCommand("TESTMODE " + flag, true);
        }
Example #2
0
        /// <summary>
        /// Sets TestMode on or off. Some commands can only be run in TestMode.
        /// See http://www.neatorobotics.com/programmers-manual/table-of-robot-application-commands/detailed-command-descriptions/#TestMode for more info.
        /// </summary>
        /// <param name="flag">Turns test mode on/off.</param>
        public void TestMode(TestModeState flag)
        {
            if (flag == TestModeState.On)
            {
                this.neato.TestMode = true;
            }
            else
            {
                this.neato.TestMode = false;
            }

            this.neato.Connection.SendCommand("TESTMODE " + flag, true);
        }