當前位置: 首頁>>代碼示例>>C#>>正文


C# Pd0BottomTrack.Encode方法代碼示例

本文整理匯總了C#中RTI.Pd0BottomTrack.Encode方法的典型用法代碼示例。如果您正苦於以下問題:C# Pd0BottomTrack.Encode方法的具體用法?C# Pd0BottomTrack.Encode怎麽用?C# Pd0BottomTrack.Encode使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在RTI.Pd0BottomTrack的用法示例。


在下文中一共展示了Pd0BottomTrack.Encode方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: TestRefLayerEchoIntensityBeam3EncodeMax

        public void TestRefLayerEchoIntensityBeam3EncodeMax()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRefLayerEchoIntensityBeam3 = 255;
            byte[] data = bt.Encode();
            Assert.AreEqual(0xFF, data[65], "Reference Layer Echo Intensity Beam 3 Max Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例2: TestDelayBeforeReacquireEncodeMin

        public void TestDelayBeforeReacquireEncodeMin()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtDelayBeforeReacquire = 0;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x00, data[4], "Delay Before Reacquire LSB Min Encode is incorrect.");
            Assert.AreEqual(0x00, data[5], "Delay Before Reacquire MSB Min Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:Pd0BottomTrackTest.cs

示例3: TestEvalAmpMinEncodeMin

        public void TestEvalAmpMinEncodeMin()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtEvalAmpMin = 0;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x00, data[7], "Evaluation Amplitude Minimum Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例4: TestBtModeEncodeMin

        public void TestBtModeEncodeMin()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtMode = 0;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x00, data[9], "BT Mode Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例5: TestCorrelationBeam3EncodeMax

        public void TestCorrelationBeam3EncodeMax()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtCorrelationMagnitudeBeam3 = 255;
            byte[] data = bt.Encode();
            Assert.AreEqual(0xFF, data[35], "Correlation Beam 3 Max Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例6: TestAmplitudeBeam3EncodeMin

        public void TestAmplitudeBeam3EncodeMin()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtAmplitudeBeam3 = 0;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x00, data[39], "Amplitude Beam 3 Min Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例7: TestVelocityBeam3EncodeMax

        public void TestVelocityBeam3EncodeMax()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtVelocityBeam3 = 32767;
            byte[] data = bt.Encode();
            Assert.AreEqual(0xFF, data[30], "Velocity Beam 3 LSB Max Encode is incorrect.");
            Assert.AreEqual(0x7F, data[31], "Velocity Beam 3 MSB Max Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:Pd0BottomTrackTest.cs

示例8: TestRefLayerPercentGoodBeam2EncodeMax

        public void TestRefLayerPercentGoodBeam2EncodeMax()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRefLayerPercentGoodBeam2 = 255;
            byte[] data = bt.Encode();
            Assert.AreEqual(0xFF, data[68], "Reference Layer Percent Good Beam 2 Max Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例9: TestAmplitudeBeam2EncodeMax

        public void TestAmplitudeBeam2EncodeMax()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtAmplitudeBeam2 = 255;
            byte[] data = bt.Encode();
            Assert.AreEqual(0xFF, data[38], "Amplitude Beam 2 Max Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例10: TestRefLayerNearEncodeMax

        public void TestRefLayerNearEncodeMax()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRefLayerNear = 9999;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x0F, data[46], "Reference Layer Near LSB Max Encode is incorrect.");
            Assert.AreEqual(0x27, data[47], "Reference Layer Near MSB Max Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:Pd0BottomTrackTest.cs

示例11: TestRefLayerPercentGoodBeam1Encode

        public void TestRefLayerPercentGoodBeam1Encode()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRefLayerPercentGoodBeam1 = 76;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x4C, data[67], "Reference Layer Percent Good Beam 1 Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs

示例12: TestRefLayerNearEncode

        public void TestRefLayerNearEncode()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRefLayerNear = 755;
            byte[] data = bt.Encode();
            Assert.AreEqual(0xF3, data[46], "Reference Layer Near LSB Encode is incorrect.");
            Assert.AreEqual(0x02, data[47], "Reference Layer Near MSB Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:Pd0BottomTrackTest.cs

示例13: TestRefLayerMinEncodeMin

        public void TestRefLayerMinEncodeMin()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRefLayerMin = 0;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x00, data[44], "Reference Layer Minimum LSB Min Encode is incorrect.");
            Assert.AreEqual(0x00, data[45], "Reference Layer Minimum MSB Min Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:Pd0BottomTrackTest.cs

示例14: TestRefLayerMinEncodeFar

        public void TestRefLayerMinEncodeFar()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRefLayerFar = 0;
            byte[] data = bt.Encode();
            Assert.AreEqual(0x00, data[48], "Reference Layer Far LSB Min Encode is incorrect.");
            Assert.AreEqual(0x00, data[49], "Reference Layer Far MSB Min Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:Pd0BottomTrackTest.cs

示例15: TestRSSIBeam3EncodeMax

        public void TestRSSIBeam3EncodeMax()
        {
            Pd0BottomTrack bt = new Pd0BottomTrack();

            bt.BtRssiBeam3 = 255 * 0.45f;
            byte[] data = bt.Encode();
            Assert.AreEqual(0xFF, data[75], "RSSI Beam 3 Max Encode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:Pd0BottomTrackTest.cs


注:本文中的RTI.Pd0BottomTrack.Encode方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。