コード例 #1
0
        public bool set(DirStruct value)
        {
            bool ret = (this.current() != value);

            if (ret)
            {
                this.Value   = value;
                this.Initial = value;
            }

            this.Timer.Start(0);

            return(ret);
        }
コード例 #2
0
        public bool turn(DirStruct value)
        {
            if (this.Value == value)
            {
                return(false);
            }

            this.Initial = this.current();
            this.Value   = value;

            if (this.turn_rate() > 0)
            {
                this.Timer.Start(this.num_steps());
            }

            return(true);
        }