当前位置: 首页>>代码示例>>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;未经允许,请勿转载。