public VisLibCmdInt(CmdIntCallBackCmd callBack, int maxHisSize, EchoMode echo) : this(VisionLabPINVOKE.new_VisLibCmdInt__SWIG_2(CmdIntCallBackCmd.getCPtr(callBack), maxHisSize, (int)echo), true) { if (VisionLabPINVOKE.SWIGPendingException.Pending) { throw VisionLabPINVOKE.SWIGPendingException.Retrieve(); } }
void setDefaults() { _echoMode = EchoMode.Off; _format = Format.ASCII; for (int i = 0; i < MaxStations; i++) _stylusButton[i] = StylusMode.Marker; _units = Units.English; for (int i = 0; i < MaxStations; i++) { _stylusButton[i] = StylusMode.Marker; _responseFrameDescription[i] = new List<IDataFrameType>(3); //for each sensor _responseFrameDescription[i].Add(new CartesianCoordinates()); //set response frame defaults _responseFrameDescription[i].Add(new EulerOrientationAngles()); _responseFrameDescription[i].Add(new CRLF()); } }
public void SetEchoMode(EchoMode e) { SendCommand(new char[] { '\u0005', e == EchoMode.Off ? '0' : '1' }, false); //never Echoes itself! _echoMode = e; string s = TReader.ReadLine(); //has special return, independent of Echo state! if (e == EchoMode.On && s == "Echo On") return; if (e == EchoMode.Off && s == "Echo Off") return; throw new PolhemusException(0xFD); //inconguent echo response }
public void SetEchoMode(EchoMode e) { SendCommand(new char[] { '\u0005', e == EchoMode.Off ? '0' : '1' }, true); _echoMode = e; }