コード例 #1
0
 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();
     }
 }
コード例 #2
0
        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());
            }
        }
コード例 #3
0
 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
 }
コード例 #4
0
 public void SetEchoMode(EchoMode e)
 {
     SendCommand(new char[] { '\u0005', e == EchoMode.Off ? '0' : '1' }, true);
     _echoMode = e;
 }