예제 #1
0
        public bool controlHomeMotion()
        {
            if (!StartedService)
            {
                return(false);
            }
            //Send message
            MechanicalCommand msg = new MechanicalCommand(MessageType.MECHANICAL_HOME_MOTOR);

            this.mMechanicalService.processInnerMessage(msg);
            return(true);
        }
예제 #2
0
        public bool disableMotion()
        {
            if (!StartedService)
            {
                return(false);
            }
            //Send message
            MechanicalCommand msg = new MechanicalCommand(MessageType.MECHANICAL_DISABLE_MOTOR);

            this.mMechanicalService.processInnerMessage(msg);
            this.EnabledMotion = false;
            return(true);
        }