public void SetStatus(STEPDIR status) { fStatus = status; if ((OnStatusChangedEvent != null) && (fParent.Parent != null)) { fParent.Parent.BeginInvoke(OnStatusChangedEvent); } }
public void Roll(MOTOR motor, STEPDIR dir, short autostop = 0) { OnStopWaitEvent.Reset(); byte[] buf = { (byte)motor, (byte)dir, (byte)(autostop >> 8), (byte)(autostop & 255) }; SendData((byte)MounterCmd.MOUNTER_ROLL, buf, 4); }
public void Step(MOTOR motor, STEPDIR dir) { byte[] buf = { (byte)motor, (byte)dir }; SendData((byte)MounterCmd.MOUNTER_STEP, buf, 2); }