Пример #1
0
        public IEncoderController SetEncoderTargetingOn(State motorOneState, State motorTwoState, int target)
        {
            var motorSelect = (int)motorOneState * 2 + (int)motorTwoState;

            _goPiGo.RunCommand(Commands.SetEncoderTargeting, (byte)motorSelect, (byte)(target / 256), (byte)(target % 256));
            return(this);
        }