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


C# Pd0BottomTrack.Decode方法代碼示例

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


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

示例1: TestCorrelationBeam3Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[35] = 0x4C;
            bt.Decode(data);
            Assert.AreEqual(76, bt.BtCorrelationMagnitudeBeam3, "Correlation Beam 3 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例2: TestRSSIBeam3Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[75] = 0x4C;
            bt.Decode(data);
            Assert.AreEqual(76 * 0.45f, bt.BtRssiBeam3, "RSSI Beam 3 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例3: TestVelocityBeam3Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[30] = 0xF3;
            data[31] = 0x02;
            bt.Decode(data);
            Assert.AreEqual(755, bt.BtVelocityBeam3, "Velocity Beam 3 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:12,代碼來源:Pd0BottomTrackTest.cs

示例4: TestPercentGoodBeam2Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[42] = 0x4C;
            bt.Decode(data);
            Assert.AreEqual(76, bt.BtPercentGoodBeam2, "Percent Good Beam 2 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例5: TestReserved82_85Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[81] = 0x9B;
            data[82] = 0x0D;
            data[83] = 0x02;
            data[84] = 0x00;
            bt.Decode(data);
            Assert.AreEqual(134555, bt.Reserved82_85, "Reserved 82-85 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:14,代碼來源:Pd0BottomTrackTest.cs

示例6: TestErrVelMaxDecode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[10] = 0xF3;
            data[11] = 0x02;
            bt.Decode(data);
            Assert.AreEqual(755, bt.BtErrVelMax, "Error Velocity Max Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:12,代碼來源:Pd0BottomTrackTest.cs

示例7: TestGainDecode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[76] = 0xF3;
            bt.Decode(data);
            Assert.AreEqual(243, bt.BtGain, "Gain Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例8: TestRefLayerEchoIntensityBeam2Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[64] = 0x4C;
            bt.Decode(data);
            Assert.AreEqual(76, bt.BtRefLayerEchoIntensityBeam2, "Reference Layer Echo Intensity Beam 2 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例9: TestAmplitudeBeam2Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[38] = 0x4C;
            bt.Decode(data);
            Assert.AreEqual(76, bt.BtAmplitudeBeam2, "Amplitude Beam 2 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例10: TestRangeMsbBeam3Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[80] = 0x4C;
            bt.Decode(data);
            Assert.AreEqual(76, bt.BtRangeMsbBeam3, "Range MSB Beam 3 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例11: TestRefLayerCorrelationBeam1Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[59] = 0x4C;
            bt.Decode(data);
            Assert.AreEqual(76, bt.BtRefLayerCorrBeam1, "Reference Layer Correlation Beam 1 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例12: TestRangeLsbBeam3Decode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[22] = 0xF3;
            data[23] = 0x02;
            bt.Decode(data);
            Assert.AreEqual(755, bt.BtRangeLsbBeam3, "Range LSB Beam 3 Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:12,代碼來源:Pd0BottomTrackTest.cs

示例13: TestPingsPerEnsembleDecode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[2] = 0xF3;
            data[3] = 0x02;
            bt.Decode(data);
            Assert.AreEqual(755, bt.BtPingsPerEnsemble, "Pings Per Ensemble Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:12,代碼來源:Pd0BottomTrackTest.cs

示例14: TestPercentGoodMinDecode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[8] = 0xF3;
            bt.Decode(data);
            Assert.AreEqual(243, bt.BtPercentGoodMin, "Percent Good Minimum Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs

示例15: TestCorrMagMinDecode

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

            byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];

            // Decode the data
            data[6] = 0xF3;
            bt.Decode(data);
            Assert.AreEqual(243, bt.BtCorrMagMin, "Correlation Magnitude Minimum Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:11,代碼來源:Pd0BottomTrackTest.cs


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