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


C# RTI.Pd0BottomTrack類代碼示例

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


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

示例1: 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

示例2: 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

示例3: TestGetRangeBeam0

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

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

            // Decode the data
            data[16] = 0x39;                // LSB LSB
            data[17] = 0x30;                // LSB MSB (12345)
            data[77] = 0x4C;                // MSB (76)
            bt.Decode(data);

            // (76 * 65535 ) + 12345 = 4980736 + 12345 = 4993081

            Assert.AreEqual(4993005, bt.GetRangeBeam0(), "GetRangeBeam0() is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:16,代碼來源:Pd0BottomTrackTest.cs

示例4: 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

示例5: TestEvalAmpMinDecode

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

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

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

示例6: 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

示例7: TestDelayBeforeReacquireDecode

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

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

            // Decode the data
            data[4] = 0xF3;
            data[5] = 0x02;
            bt.Decode(data);
            Assert.AreEqual(755, bt.BtDelayBeforeReacquire, "Delay Before Reacquire Decode is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:12,代碼來源:Pd0BottomTrackTest.cs

示例8: 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

示例9: 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

示例10: 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

示例11: TestRSSIBeam3EncodeMin

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

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

示例12: 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

示例13: TestRSSIBeam2Encode

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

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

示例14: TestReserved82_85Encode

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

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

示例15: 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


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