本文整理汇总了C#中AdcpCommands类的典型用法代码示例。如果您正苦于以下问题:C# AdcpCommands类的具体用法?C# AdcpCommands怎么用?C# AdcpCommands使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
AdcpCommands类属于命名空间,在下文中一共展示了AdcpCommands类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: TestC232B_115200_CmdStr
public void TestC232B_115200_CmdStr()
{
AdcpCommands cmd = new AdcpCommands();
cmd.C232B = Baudrate.BAUD_115200;
Assert.AreEqual("C232B 115200", cmd.C232B_CmdStr(), "C232B Command String BAUD_115200 is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例2: TestC232B_115200
public void TestC232B_115200()
{
AdcpCommands cmd = new AdcpCommands();
cmd.C232B = Baudrate.BAUD_115200;
Assert.AreEqual(Baudrate.BAUD_115200, cmd.C232B, "C232B BAUD_115200 is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例3: TestCWSS
public void TestCWSS()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CWSS = 15.009f;
Assert.AreEqual(15.009f, cmd.CWSS, 0.0001, "CWSS is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例4: TestCETFPCmdStr
public void TestCETFPCmdStr()
{
AdcpCommands cmd = new AdcpCommands();
//cmd.CETFP_Year = 2012;
//cmd.CETFP_Month = 11;
//cmd.CETFP_Day = 21;
//cmd.CETFP_Hour = 12;
//cmd.CETFP_Minute = 03;
//cmd.CETFP_Second = 15;
//cmd.CETFP_HunSec = 67;
cmd.CETFP = new DateTime(2012, 11, 21, 12, 03, 15, (int)(67 * MathHelper.HUNSEC_TO_MILLISEC));
Assert.AreEqual("CETFP 2012/11/21,12:03:15.67", cmd.CETFP_CmdStr(), "CETFP Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:15,代码来源:AdcpCommandsTest.cs
示例5: TestCERECORD1
public void TestCERECORD1()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CERECORD_EnsemblePing = false;
Assert.AreEqual(false, cmd.CERECORD_EnsemblePing, "CERECORD is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例6: TestCEPOCmdStr
public void TestCEPOCmdStr()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CEPO = "2323";
Assert.AreEqual("CEPO 2323", cmd.CEPO_CmdStr(), "CEPO Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例7: TestCEOUTPUT_CornerMin
public void TestCEOUTPUT_CornerMin()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CEOUTPUT = AdcpCommands.AdcpOutputMode.Disable;
Assert.AreEqual(AdcpCommands.AdcpOutputMode.Disable, cmd.CEOUTPUT, "CEOUTPUT is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例8: TestCEOUTPUTCmdStr3
public void TestCEOUTPUTCmdStr3()
{
AdcpCommands cmd = new AdcpCommands();
Assert.AreEqual("CEOUTPUT 1", cmd.CEOUTPUT_CmdStr(), "CEOUTPUT Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:6,代码来源:AdcpCommandsTest.cs
示例9: TestCEOUTPUT
public void TestCEOUTPUT()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CEOUTPUT = AdcpCommands.AdcpOutputMode.Binary;
Assert.AreEqual(AdcpCommands.AdcpOutputMode.Binary, cmd.CEOUTPUT, "CEOUTPUT is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例10: TestMode
public void TestMode()
{
AdcpCommands cmd = new AdcpCommands();
cmd.Mode = AdcpCommands.AdcpMode.PROFILE;
Assert.AreEqual(AdcpCommands.AdcpMode.PROFILE, cmd.Mode, "Mode is incorrect.");
Assert.AreEqual("CPROFILE", cmd.Mode_ToString(), "Mode String is incorrect.");
Assert.AreEqual(AdcpCommands.CMD_CPROFILE, cmd.Mode_ToString(), "Mode String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:10,代码来源:AdcpCommandsTest.cs
示例11: TestEqual_New
public void TestEqual_New()
{
AdcpCommands cmd = new AdcpCommands();
cmd.Mode = AdcpCommands.AdcpMode.DVL;
cmd.CEI = new TimeValue(1, 2, 3, 4);
cmd.CEPO = "33";
//cmd.CETFP_Year = 2022;
//cmd.CETFP_Month = 4;
//cmd.CETFP_Day = 20;
//cmd.CETFP_Hour = 3;
//cmd.CETFP_Minute = 2;
//cmd.CETFP_Second = 32;
//cmd.CETFP_HunSec = 83;
cmd.CETFP = new DateTime(2022, 4, 20, 3, 2, 32, 83);
cmd.CERECORD_EnsemblePing = false;
cmd.CEOUTPUT = AdcpCommands.AdcpOutputMode.Binary;
cmd.CWS = 23.234f;
cmd.CWT = 934.123f;
cmd.CTD = 945.23f;
cmd.CWSS = 111.345f;
cmd.CHO = 83.23f;
cmd.CHS = HeadingSrc.INTERNAL;
cmd.CVSF = 234.2345f;
cmd.C232B = Baudrate.BAUD_19200;
cmd.C485B = Baudrate.BAUD_460800;
cmd.C422B = Baudrate.BAUD_38400;
AdcpCommands cmd1 = cmd;
#region Mode
Assert.AreEqual(AdcpCommands.AdcpMode.DVL, cmd.Mode, "Mode is incorrect.");
Assert.AreEqual(AdcpCommands.AdcpMode.DVL, cmd1.Mode, "Mode 1 is incorrect.");
Assert.AreEqual(cmd.Mode, cmd1.Mode, "Mode equal is incorrect.");
#endregion
#region CEI
Assert.AreEqual(new TimeValue(1, 2, 3, 4), cmd.CEI, "CEI is incorrect.");
Assert.AreEqual(new TimeValue(1, 2, 3, 4), cmd1.CEI, "CEI 1 is incorrect.");
Assert.AreEqual(cmd.CEI, cmd1.CEI, "CEI equal is incorrect.");
#endregion
#region CEPO
Assert.AreEqual("33", cmd.CEPO, "CEPO is incorrect.");
Assert.AreEqual("33", cmd1.CEPO, "CEPO 1 is incorrect.");
Assert.AreEqual(cmd.CEPO, cmd1.CEPO, "CEPO equal is incorrect.");
#endregion
#region CETFP_Year
Assert.AreEqual(2022, cmd.CETFP.Year, "CETFP_Year is incorrect.");
Assert.AreEqual(2022, cmd1.CETFP.Year, "CETFP_Year 1 is incorrect.");
Assert.AreEqual(cmd.CETFP.Year, cmd1.CETFP.Year, "CETFP_Year equal is incorrect.");
#endregion
#region CETFP_Month
Assert.AreEqual(4, cmd.CETFP.Month, "CETFP_Month is incorrect.");
Assert.AreEqual(4, cmd1.CETFP.Month, "CETFP_Month 1 is incorrect.");
Assert.AreEqual(cmd.CETFP.Month, cmd1.CETFP.Month, "CETFP_Month equal is incorrect.");
#endregion
#region CETFP_Day
Assert.AreEqual(20, cmd.CETFP.Day, "CETFP_Day is incorrect.");
Assert.AreEqual(20, cmd1.CETFP.Day, "CETFP_Day 1 is incorrect.");
Assert.AreEqual(cmd.CETFP.Day, cmd1.CETFP.Day, "CETFP_Day equal is incorrect.");
#endregion
#region CETFP_Hour
Assert.AreEqual(3, cmd.CETFP.Hour, "CETFP_Hour is incorrect.");
Assert.AreEqual(3, cmd1.CETFP.Hour, "CETFP_Hour 1 is incorrect.");
Assert.AreEqual(cmd.CETFP.Hour, cmd1.CETFP.Hour, "CETFP_Hour equal is incorrect.");
#endregion
#region CETFP_Minute
Assert.AreEqual(2, cmd.CETFP.Minute, "CETFP_Minute is incorrect.");
Assert.AreEqual(2, cmd1.CETFP.Minute, "CETFP_Minute 1 is incorrect.");
Assert.AreEqual(cmd.CETFP.Minute, cmd1.CETFP.Minute, "CETFP_Minute equal is incorrect.");
#endregion
#region CETFP_Second
Assert.AreEqual(32, cmd.CETFP.Second, "CETFP_Second is incorrect.");
Assert.AreEqual(32, cmd1.CETFP.Second, "CETFP_Second 1 is incorrect.");
Assert.AreEqual(cmd.CETFP.Second, cmd1.CETFP.Second, "CETFP_Second equal is incorrect.");
#endregion
#region CETFP_HunSec
//Assert.AreEqual(83, cmd.CETFP_HunSec, "CETFP_HunSec is incorrect.");
//Assert.AreEqual(83, cmd1.CETFP_HunSec, "CETFP_HunSec 1 is incorrect.");
//Assert.AreEqual(cmd.CETFP_HunSec, cmd1.CETFP_HunSec, "CETFP_HunSec equal is incorrect.");
#endregion
#region CERECORD
Assert.AreEqual(false, cmd.CERECORD_EnsemblePing, "CERECORD is incorrect.");
Assert.AreEqual(false, cmd1.CERECORD_EnsemblePing, "CERECORD 1 is incorrect.");
Assert.AreEqual(cmd.CERECORD_EnsemblePing, cmd1.CERECORD_EnsemblePing, "CERECORD equal is incorrect.");
#endregion
#region CEOUTPUT
Assert.AreEqual(AdcpCommands.AdcpOutputMode.Binary, cmd.CEOUTPUT, "CEOUTPUT is incorrect.");
Assert.AreEqual(AdcpCommands.AdcpOutputMode.Binary, cmd1.CEOUTPUT, "CEOUTPUT 1 is incorrect.");
Assert.AreEqual(cmd.CEOUTPUT, cmd1.CEOUTPUT, "CEOUTPUT equal is incorrect.");
//.........这里部分代码省略.........
开发者ID:Bobfrat,项目名称:RTI,代码行数:101,代码来源:AdcpCommandsTest.cs
示例12: TestCWTCmdStr
public void TestCWTCmdStr()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CWT = 0.024564f;
Assert.AreEqual("CWT 0.024564", cmd.CWT_CmdStr(), "CWT Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例13: TestCWT
public void TestCWT()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CWT = 15.006f;
Assert.AreEqual(15.006f, cmd.CWT, 0.0001, "CWT is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例14: TestCWS_Min
public void TestCWS_Min()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CWS = AdcpCommands.MIN_CWS;
Assert.AreEqual(AdcpCommands.MIN_CWS, cmd.CWS, 0.0001, "CWS is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例15: TestCWS_Bad
public void TestCWS_Bad()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CWS = -15.004f;
Assert.AreEqual(AdcpCommands.DEFAULT_CWS, cmd.CWS, 0.0001, "CWS is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例16: TestCWSSCmdStr
public void TestCWSSCmdStr()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CWSS = 0.02456456f;
Assert.AreEqual("CWSS 0.02456456", cmd.CWSS_CmdStr(), "CWSS Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例17: TestCEICmdStr
public void TestCEICmdStr()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CEI = new TimeValue(1, 2, 3, 4);
Assert.AreEqual("CEI 01:02:03.04", cmd.CEI_CmdStr(), "CEI Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例18: TestModeCmdStr1
public void TestModeCmdStr1()
{
AdcpCommands cmd = new AdcpCommands();
cmd.Mode = AdcpCommands.AdcpMode.DVL;
Assert.AreEqual(AdcpCommands.AdcpMode.DVL, cmd.Mode, "Mode is incorrect.");
Assert.AreEqual("CDVL", cmd.Mode_ToString(), "Mode String is incorrect.");
Assert.AreEqual(AdcpCommands.CMD_CDVL, cmd.Mode_ToString(), "Mode String is incorrect.");
Assert.AreEqual(AdcpCommands.CMD_CDVL, cmd.Mode_CmdStr(), "Mode Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:11,代码来源:AdcpCommandsTest.cs
示例19: TestCEOUTPUTCmdStr2
public void TestCEOUTPUTCmdStr2()
{
AdcpCommands cmd = new AdcpCommands();
cmd.CEOUTPUT = AdcpCommands.AdcpOutputMode.ASCII;
Assert.AreEqual("CEOUTPUT 2", cmd.CEOUTPUT_CmdStr(), "CEOUTPUT Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
示例20: TestUtcTimeCmdStr
public void TestUtcTimeCmdStr()
{
AdcpCommands cmd = new AdcpCommands();
string dateTime = DateTime.Now.ToUniversalTime().ToString("yyyy/MM/dd,HH:mm:ss", CultureInfo.CreateSpecificCulture("en-US"));
Assert.AreEqual(AdcpCommands.CMD_STIME + " " + dateTime, cmd.GmtTime_CmdStr(), "Time Command String is incorrect.");
}
开发者ID:Bobfrat,项目名称:RTI,代码行数:8,代码来源:AdcpCommandsTest.cs
注:本文中的AdcpCommands类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论