Exemple #1
0
        /// <summary>
        /// Sets LDS rotation on or off. (TestMode Only)
        /// See http://www.neatorobotics.com/programmers-manual/table-of-robot-application-commands/detailed-command-descriptions/#SetLDSRotation for more info.
        /// </summary>
        /// <param name="flag">TODO: describe state</param>
        public void SetLDSRotation(LDSRotation flag)
        {
            if (!this.neato.TestMode)
            {
                throw new NotInTestModeException("SetLDSRotation");
            }

            this.neato.Connection.SendCommand("SetLDSRotation " + flag);

            // Update Neato status!
            this.neato.LDSRotation = flag == LDSRotation.On;
        }
Exemple #2
0
        /// <summary>
        /// Sets LDS rotation on or off. (TestMode Only)
        /// See http://www.neatorobotics.com/programmers-manual/table-of-robot-application-commands/detailed-command-descriptions/#SetLDSRotation for more info.
        /// </summary>
        /// <param name="flag">TODO: describe state</param>
        public void SetLDSRotation(LDSRotation flag)
        {
            if (!this.neato.TestMode)
            {
                throw new NotInTestModeException("SetLDSRotation");
            }

            this.neato.Connection.SendCommand("SetLDSRotation " + flag);

            // Update Neato status!
            this.neato.LDSRotation = flag == LDSRotation.On;
        }