本文整理汇总了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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}
示例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.");
}