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


C# AdcpSubsystemCommands類代碼示例

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


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

示例1: CBI1

        public void CBI1()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
            ssc.CBI_NumEnsembles = 3;
            ssc.CBI_BurstInterval = new TimeValue(0, 0, 1, 0);

            Assert.AreEqual("CBI[4] 00:00:01.00,3,1", ssc.CBI_CmdStr(), "CBI Cmd Str is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例2: CBTON_CmdStr

        public void CBTON_CmdStr()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));
            ssc.CBTON = false;

            Assert.AreEqual("CBTON[0] 0", ssc.CBTON_CmdStr(0), "CBTON Cmd Str is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:AdcpSubsystemCommandsTest.cs

示例3: TestCBI_BurstInterval_CornerOver

        public void TestCBI_BurstInterval_CornerOver()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CBI_BurstInterval = new TimeValue(502, 97, 83, 124);

            Assert.AreEqual(new TimeValue(503, 38, 24, 24), ssc.CBI_BurstInterval, "CBI_BurstInterval is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例4: CWTON_CmdStr2

        public void CWTON_CmdStr2()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
            ssc.CWTON = true;

            Assert.AreEqual("CWTON[4] 1", ssc.CWTON_CmdStr(), "CWTON Cmd Str is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:8,代碼來源:AdcpSubsystemCommandsTest.cs

示例5: CWPST1

        public void CWPST1()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
            ssc.CWPST_CorrelationThresh = 0.33f;
            ssc.CWPST_QVelocityThresh = 0.44f;
            ssc.CWPST_VVelocityThresh = 0.55f;

            Assert.AreEqual("CWPST[4] 0.33,0.44,0.55", ssc.CWPST_CmdStr(), "CWPST Cmd Str is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:10,代碼來源:AdcpSubsystemCommandsTest.cs

示例6: CWPAP1

        public void CWPAP1()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
            ssc.CWPAP_NumPingsAvg = 3;
            ssc.CWPAP_Lag = 0.04565f;
            ssc.CWPAP_Blank = 1.5f;
            ssc.CWPAP_BinSize = 3.3f;
            ssc.CWPAP_TimeBetweenPing = 0.025f;

            Assert.AreEqual("CWPAP[4] 3,0.04565,1.5,3.3,0.025", ssc.CWPAP_CmdStr(), "CWPAP Cmd Str is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:12,代碼來源:AdcpSubsystemCommandsTest.cs

示例7: CWPBP1

        public void CWPBP1()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
            ssc.CWPBP_NumPingsAvg = 3;
            ssc.CWPBP_TimeBetweenBasePings = 0.025f;

            Assert.AreEqual("CWPBP[4] 3,0.025", ssc.CWPBP_CmdStr(), "CWPBP Cmd Str is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例8: TestCWTBL

        public void TestCWTBL()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CWTBL = 1.3f;

            Assert.AreEqual(1.3f, ssc.CWTBL, "CWTBL is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例9: TestCWTBS_BadCWTBSMin

        public void TestCWTBS_BadCWTBSMin()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CWTBS = -0.2f;

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_600_CWTBS, ssc.CWTBS, "CWTBS is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例10: TestCWPST_VVelMin

        public void TestCWPST_VVelMin()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CWPST_VVelocityThresh = AdcpSubsystemCommands.MIN_CWPST_V_VELOCITY_THRESH;

            Assert.AreEqual(AdcpSubsystemCommands.MIN_CWPST_V_VELOCITY_THRESH, ssc.CWPST_VVelocityThresh, "CWPST V Velocity Threshold is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例11: TestCWPX_Max

        public void TestCWPX_Max()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CWPX = 1000.235f;

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_600_CWPX, ssc.CWPX, "CWPX is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例12: TestCWPST_VVelBad

        public void TestCWPST_VVelBad()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CWPST_VVelocityThresh = -0.125f;

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPST_VVEL_THRESH, ssc.CWPST_VVelocityThresh, "CWPST V Velocity Threshold is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例13: TestCWPST_BadCorrThreshMin

        public void TestCWPST_BadCorrThreshMin()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CWPST_CorrelationThresh = -0.2f;

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPST_CORR_THRESH, ssc.CWPST_CorrelationThresh, "CWPAP Correlation Threshold is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:9,代碼來源:AdcpSubsystemCommandsTest.cs

示例14: TestCWPST

        public void TestCWPST()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            ssc.CWPST_CorrelationThresh = 0.3256f;
            ssc.CWPST_QVelocityThresh = 0.125f;
            ssc.CWPST_VVelocityThresh = 0.15645f;

            Assert.AreEqual(0.3256f, ssc.CWPST_CorrelationThresh, "CWPST Correlation Threshold is incorrect.");
            Assert.AreEqual(0.125f, ssc.CWPST_QVelocityThresh, "CWPST Q Velocity Threshold is incorrect.");
            Assert.AreEqual(0.15645f, ssc.CWPST_VVelocityThresh, "CWPST V Velocity Threshold is incorrect.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:13,代碼來源:AdcpSubsystemCommandsTest.cs

示例15: TestToString

        public void TestToString()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            string result = ssc.ToString();

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPON), "CMD_CWPON is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBB), "CMD_CWPBB is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPST), "CMD_CWPST is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBL), "CMD_CWPBL is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBS), "CMD_CWPBS is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPX), "CMD_CWPX is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBN), "CMD_CWPBN is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPP), "CMD_CWPP is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPBP), "CMD_CWPBP is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPAI), "CMD_CWPAI is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPTBP), "CMD_CWPTBP is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWPAP), "CMD_CWPAP is missing.");

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBI), "CMD_CBI is missing.");

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTON), "CMD_CBTON is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTBB), "CMD_CBTBB is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTST), "CMD_CBTST is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTT), "CMD_CBTT is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTBL), "CMD_CBTBL is missing.");
            //Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTMX), "CMD_CBTMX is missing.");         // Removed
            Assert.IsFalse(result.Contains(AdcpSubsystemCommands.CMD_CBTMX), "CMD_CBTMX is missing.");          // Removed
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CBTTBP), "CMD_CBTTBP is missing.");

            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTON), "CMD_CWTON is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTBB), "CMD_CWTBB is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTBL), "CMD_CWTBL is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTBS), "CMD_CWTBS is missing.");
            Assert.IsTrue(result.Contains(AdcpSubsystemCommands.CMD_CWTTBP), "CMD_CWTTBP is missing.");
        }
開發者ID:rowetechinc,項目名稱:RTI,代碼行數:37,代碼來源:AdcpSubsystemCommandsTest.cs


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