public bool set(DirStruct value) { bool ret = (this.current() != value); if (ret) { this.Value = value; this.Initial = value; } this.Timer.Start(0); return(ret); }
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); }