本文整理汇总了C#中AdcpSubsystemCommands类的典型用法代码示例。如果您正苦于以下问题:C# AdcpSubsystemCommands类的具体用法?C# AdcpSubsystemCommands怎么用?C# AdcpSubsystemCommands使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AdcpSubsystemCommands类属于命名空间,在下文中一共展示了AdcpSubsystemCommands类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: TestCWTBS_CornerMin
public void TestCWTBS_CornerMin()
{
Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));
ssc.CWTBS = AdcpSubsystemCommands.MIN_CWTBS;
Assert.AreEqual(AdcpSubsystemCommands.MIN_CWTBS, ssc.CWTBS, "CWTBS is incorrect.");
}
开发者ID:rowetechinc,项目名称:RTI,代码行数:9,代码来源:AdcpSubsystemCommandsTest.cs
示例17: CWPAI1
public void CWPAI1()
{
Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
ssc.CWPAI = new TimeValue(0, 0, 1, 0);
Assert.AreEqual("CWPAI[4] 00:00:01.00", ssc.CWPAI_CmdStr(), "CWPAI Cmd Str is incorrect.");
}
开发者ID:rowetechinc,项目名称:RTI,代码行数:8,代码来源:AdcpSubsystemCommandsTest.cs
示例18: TestCWTON1
public void TestCWTON1()
{
Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));
ssc.CWTON = false;
Assert.AreEqual(false, ssc.CWTON, "CWTON is incorrect.");
}
开发者ID:rowetechinc,项目名称:RTI,代码行数:9,代码来源:AdcpSubsystemCommandsTest.cs
示例19: CWPBB1
public void CWPBB1()
{
Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
ssc.CWPBB_TransmitPulseType = AdcpSubsystemCommands.eCWPBB_TransmitPulseType.BROADBAND_PULSE_TO_PULSE;
ssc.CWPBB_LagLength = 0.0024f;
Assert.AreEqual("CWPBB[4] 3,0.0024", ssc.CWPBB_CmdStr(), "CWPBB Cmd Str is incorrect.");
}
开发者ID:rowetechinc,项目名称:RTI,代码行数:9,代码来源:AdcpSubsystemCommandsTest.cs
示例20: TestCWTTBP
public void TestCWTTBP()
{
Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));
ssc.CWTTBP = 15.004f;
Assert.AreEqual(15.004, ssc.CWTTBP, 0.0001, "CWTTBP is incorrect.");
}
开发者ID:rowetechinc,项目名称:RTI,代码行数:9,代码来源:AdcpSubsystemCommandsTest.cs
注:本文中的AdcpSubsystemCommands类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论