当前位置: 首页>>代码示例>>C#>>正文


C# Subsystem类代码示例

本文整理汇总了C#中Subsystem的典型用法代码示例。如果您正苦于以下问题:C# Subsystem类的具体用法?C# Subsystem怎么用?C# Subsystem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Subsystem类属于命名空间,在下文中一共展示了Subsystem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SubsystemIO

	public SubsystemIO (Subsystem subsystem)
	{
		name = subsystem.name;
		UID = subsystem.UID;
		gameObject = subsystem.gameObject.ToString ();
		startCamDistance = subsystem.startCamDistance;
		startCamRotation = subsystem.startCamRotation;
		textAbout = subsystem.textAbout;
	}
开发者ID:kafedorov89,项目名称:ElectroLab3D_TechShowroom,代码行数:9,代码来源:SubsystemIO.cs

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

示例3: AdcpSubsystemConfigExist

        public void AdcpSubsystemConfigExist()
        {
            AdcpConfiguration config = new AdcpConfiguration();
            SerialNumber serial = new SerialNumber("01200000000000000000000000000004");
            Dictionary<string, AdcpSubsystemConfig> result = config.SetCepo("2", serial);

            Subsystem ss = new Subsystem("2", 0);                                   // Subsystem code and Index within serial number
            SubsystemConfiguration ssConfig = new SubsystemConfiguration(ss, 0, 0);        // Number of configurations for a given subsystem

            Assert.AreEqual(true, config.AdcpSubsystemConfigExist(ssConfig), "AdcpSubsystemConfigExist() is incorrect.");
        }
开发者ID:Bobfrat,项目名称:RTI,代码行数:11,代码来源:AdcpConfigurationTest.cs

示例4: PEHeaderBuilder

        /// <summary>
        /// Creates PE header builder.
        /// </summary>
        /// <exception cref="ArgumentOutOfRangeException">
        /// <paramref name="fileAlignment"/> is not power of 2 between 512 and 64K, or
        /// <paramref name="sectionAlignment"/> not power of 2 or it's less than <paramref name="fileAlignment"/>.
        /// </exception>
        public PEHeaderBuilder(
            Machine machine = 0,
            int sectionAlignment = 0x2000,
            int fileAlignment = 0x200,
            ulong imageBase = 0x00400000,
            byte majorLinkerVersion = 0x30, // (what is ref.emit using?)
            byte minorLinkerVersion = 0,
            ushort majorOperatingSystemVersion = 4,
            ushort minorOperatingSystemVersion = 0,
            ushort majorImageVersion = 0,
            ushort minorImageVersion = 0,
            ushort majorSubsystemVersion = 4,
            ushort minorSubsystemVersion = 0,
            Subsystem subsystem = Subsystem.WindowsCui,
            DllCharacteristics dllCharacteristics = DllCharacteristics.DynamicBase | DllCharacteristics.NxCompatible | DllCharacteristics.NoSeh | DllCharacteristics.TerminalServerAware,
            Characteristics imageCharacteristics = Characteristics.Dll,
            ulong sizeOfStackReserve = 0x00100000,
            ulong sizeOfStackCommit = 0x1000,
            ulong sizeOfHeapReserve = 0x00100000,
            ulong sizeOfHeapCommit = 0x1000)
        {
            if (fileAlignment < 512 || fileAlignment > 64 * 1024 || BitArithmetic.CountBits(fileAlignment) != 1)
            {
                Throw.ArgumentOutOfRange(nameof(fileAlignment));
            }

            if (sectionAlignment < fileAlignment || BitArithmetic.CountBits(sectionAlignment) != 1)
            {
                Throw.ArgumentOutOfRange(nameof(sectionAlignment));
            }

            Machine = machine;
            SectionAlignment = sectionAlignment;
            FileAlignment = fileAlignment;
            ImageBase = imageBase;
            MajorLinkerVersion = majorLinkerVersion;
            MinorLinkerVersion = minorLinkerVersion;
            MajorOperatingSystemVersion = majorOperatingSystemVersion;
            MinorOperatingSystemVersion = minorOperatingSystemVersion;
            MajorImageVersion = majorImageVersion;
            MinorImageVersion = minorImageVersion;
            MajorSubsystemVersion = majorSubsystemVersion;
            MinorSubsystemVersion = minorSubsystemVersion;
            Subsystem = subsystem;
            DllCharacteristics = dllCharacteristics;
            ImageCharacteristics = imageCharacteristics;
            SizeOfStackReserve = sizeOfStackReserve;
            SizeOfStackCommit = sizeOfStackCommit;
            SizeOfHeapReserve = sizeOfHeapReserve;
            SizeOfHeapCommit = sizeOfHeapCommit;
        }
开发者ID:Corillian,项目名称:corefx,代码行数:58,代码来源:PEHeaderBuilder.cs

示例5: TestConstructor

        public void TestConstructor()
        {
            // Create a serial number
            string serialStr = "01300000000000000000000000000001";
            SerialNumber serialNum = new SerialNumber(serialStr);

            // Test the serial number
            Assert.AreEqual(serialStr, serialNum.ToString(), string.Format("Serial number strings did not match {0}  {1}", serialStr, serialNum.ToString()));
            Assert.AreEqual(1, serialNum.SubSystemsDict.Count, string.Format("Number of SubSystems did not match 1 {0}", serialNum.SubSystemsDict.Count));

            Subsystem ss = new Subsystem("3", 0);
            Assert.AreEqual(ss, serialNum.SubSystemsDict[0], string.Format("Subsystems do not match {0}  {1}", ss.ToString(), serialNum.SubSystemsDict[0].ToString()));

            Assert.AreEqual(1, serialNum.SystemSerialNumber, string.Format("Serial numbers do not match {0}  {1}", 1, serialNum.SystemSerialNumber));
        }
开发者ID:Bobfrat,项目名称:RTI,代码行数:15,代码来源:SerialNumberTest.cs

示例6: TestConstructor

        public void TestConstructor()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_1_2MHZ_4BEAM_20DEG_PISTON_2, 0);         // 1200kHz
            SubsystemConfiguration ssConfig = new SubsystemConfiguration(ss, 0, 0);                    // 0 Config
            int cepoIndex = 0;
            AdcpSubsystemConfig asConfig = new AdcpSubsystemConfig(ssConfig);
            string asConfigStr = AdcpSubsystemConfig.GetString(ssConfig);

            Assert.AreEqual(asConfig.SubsystemConfig.CepoIndex, cepoIndex, "CepoIndex is incorrect.");
            //Assert.AreEqual(asConfig.Commands.CepoIndex, cepoIndex, "Commands CEPO index is incorrect.");
            Assert.AreEqual(asConfig.SubsystemConfig.SubSystem, ss, "Subsystem is incorrect.");
            Assert.AreEqual(asConfig.SubsystemConfig, ssConfig, "SubsystemConfiguration is incorrect.");
            Assert.AreEqual(asConfig.ToString(), "[0] 1.2 MHz 4 beam 20 degree piston", "ToString is incorrect.");
            Assert.AreEqual(asConfigStr, "[0] 1.2 MHz 4 beam 20 degree piston", "GetString is incorrect.");
        }
开发者ID:Bobfrat,项目名称:RTI,代码行数:15,代码来源:AdcpSubsystemConfigTest.cs

示例7: Test150KhzFrequency

        public void Test150KhzFrequency()
        {
            // Create a serial number
            string serialStr = "01K00000000000000000000000000001";
            SerialNumber serialNum = new SerialNumber(serialStr);

            // Test the serial number
            Assert.AreEqual(serialStr, serialNum.ToString(), string.Format("Serial number strings did not match {0}  {1}", serialStr, serialNum.ToString()));
            Assert.AreEqual(1, serialNum.SubSystemsList.Count, string.Format("Number of SubSystems did not match 1 {0}", serialNum.SubSystemsList.Count));

            // Upper case K
            Subsystem ss = new Subsystem("K", 0);
            Assert.AreEqual(ss, serialNum.SubSystemsList[0], string.Format("Subsystems do not match {0}  {1}", ss.ToString(), serialNum.SubSystemsList[0].ToString()));

            // Lower case k
            Subsystem ss1 = new Subsystem("k", 0);
            Assert.AreNotEqual(ss1, serialNum.SubSystemsList[0], string.Format("Subsystems should not match {0}  {1}", ss1.ToString(), serialNum.SubSystemsList[0].ToString()));

            Assert.AreEqual(1, serialNum.SystemSerialNumber, string.Format("Serial numbers do not match {0}  {1}", 1, serialNum.SystemSerialNumber));
        }
开发者ID:Bobfrat,项目名称:RTI,代码行数:20,代码来源:SerialNumberTest.cs

示例8: PEHeaderBuilder

 public PEHeaderBuilder(
     Machine machine = 0,
     int sectionAlignment = 0x2000,
     int fileAlignment = 0x200,
     ulong imageBase = 0x00400000,
     byte majorLinkerVersion = 0x30, // (what is ref.emit using?)
     byte minorLinkerVersion = 0,
     ushort majorOperatingSystemVersion = 4,
     ushort minorOperatingSystemVersion = 0,
     ushort majorImageVersion = 0,
     ushort minorImageVersion = 0,
     ushort majorSubsystemVersion = 4,
     ushort minorSubsystemVersion = 0,
     Subsystem subsystem = Subsystem.WindowsCui,
     DllCharacteristics dllCharacteristics = DllCharacteristics.DynamicBase | DllCharacteristics.NxCompatible | DllCharacteristics.NoSeh | DllCharacteristics.TerminalServerAware,
     Characteristics imageCharacteristics = Characteristics.Dll,
     ulong sizeOfStackReserve = 0x00100000,
     ulong sizeOfStackCommit = 0x1000,
     ulong sizeOfHeapReserve = 0x00100000,
     ulong sizeOfHeapCommit = 0x1000)
 {
     Machine = machine;
     SectionAlignment = sectionAlignment;
     FileAlignment = fileAlignment;
     ImageBase = imageBase;
     MajorLinkerVersion = majorLinkerVersion;
     MinorLinkerVersion = minorLinkerVersion;
     MajorOperatingSystemVersion = majorOperatingSystemVersion;
     MinorOperatingSystemVersion = minorOperatingSystemVersion;
     MajorImageVersion = majorImageVersion;
     MinorImageVersion = minorImageVersion;
     MajorSubsystemVersion = majorSubsystemVersion;
     MinorSubsystemVersion = minorSubsystemVersion;
     Subsystem = subsystem;
     DllCharacteristics = dllCharacteristics;
     ImageCharacteristics = imageCharacteristics;
     SizeOfStackReserve = sizeOfStackReserve;
     SizeOfStackCommit = sizeOfStackCommit;
     SizeOfHeapReserve = sizeOfHeapReserve;
     SizeOfHeapCommit = sizeOfHeapCommit;
 }
开发者ID:ChuangYang,项目名称:corefx,代码行数:41,代码来源:PEHeaderBuilder.cs

示例9: TestAddSubsystem

        public void TestAddSubsystem()
        {
            // Create a serial number
            string serialStr = "01300000000000000000000000000001";
            SerialNumber serial = new SerialNumber(serialStr);

            Subsystem ss1 = new Subsystem(Subsystem.SUB_1_2MHZ_4BEAM_20DEG_PISTON_2, 1);
            serial.AddSubsystem(ss1);

            Assert.AreEqual(2, serial.SubSystemsList.Count, "Dictionary count is incorrect.");

            Assert.AreEqual("320000000000000", serial.SubSystems, "Subsystem String is incorrect.");
            Assert.AreEqual(2, serial.SubSystemsList.Count, "Subsystem Dict Count is incorrect.");

            // Subsystem type 3
            Subsystem ss = new Subsystem("3", 0);
            Assert.AreEqual(ss, serial.SubSystemsList[0], string.Format("Subsystems do not match {0}  {1}", ss.ToString(), serial.SubSystemsList[0].ToString()));

            // Subsystem type 2
            Assert.AreEqual(ss1, serial.SubSystemsList[1], string.Format("Subsystems do not match {0}  {1}", ss1.ToString(), serial.SubSystemsList[1].ToString()));
        }
开发者ID:Bobfrat,项目名称:RTI,代码行数:21,代码来源:SerialNumberTest.cs

示例10: TestJSON

        public void TestJSON()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_1_2MHZ_4BEAM_20DEG_PISTON_2, 0);         // 1200kHz
            SubsystemConfiguration ssConfig = new SubsystemConfiguration(ss, 0, 0);                    // 0 Config
            int cepoIndex = 0;
            AdcpSubsystemConfig asConfig = new AdcpSubsystemConfig(ssConfig);

            string json = Newtonsoft.Json.JsonConvert.SerializeObject(asConfig);                                        // Serialize object to JSON
            AdcpSubsystemConfig newConfig = Newtonsoft.Json.JsonConvert.DeserializeObject<AdcpSubsystemConfig>(json);   // Deserialize the JSON

            Assert.AreEqual(asConfig.SubsystemConfig.CepoIndex, cepoIndex, "CepoIndex is incorrect.");
            //Assert.AreEqual(asConfig.Commands.CepoIndex, cepoIndex, "Commands CEPO index is incorrect.");
            Assert.AreEqual(asConfig.SubsystemConfig.SubSystem, ss, "Subsystem is incorrect.");
            Assert.AreEqual(asConfig.SubsystemConfig, ssConfig, "SubsystemConfiguration is incorrect.");
            Assert.AreEqual(asConfig.ToString(), "[0] 1.2 MHz 4 beam 20 degree piston", "ToString is incorrect.");

            Assert.AreEqual(newConfig.SubsystemConfig.CepoIndex, cepoIndex, "CepoIndex is incorrect.");
            //Assert.AreEqual(newConfig.Commands.CepoIndex, cepoIndex, "Commands CEPO index is incorrect.");
            Assert.AreEqual(newConfig.SubsystemConfig.SubSystem, ss, "Subsystem is incorrect.");
            Assert.AreEqual(newConfig.SubsystemConfig, ssConfig, "SubsystemConfiguration is incorrect.");
            Assert.AreEqual(newConfig.ToString(), "[0] 1.2 MHz 4 beam 20 degree piston", "ToString is incorrect.");
        }
开发者ID:Bobfrat,项目名称:RTI,代码行数:22,代码来源:AdcpSubsystemConfigTest.cs

示例11: TestDefaults75

        public void TestDefaults75()
        {
            // Create the commands with the correct frequency in Subsystem
            Subsystem ss = new Subsystem(Subsystem.SUB_75KHZ_4BEAM_30DEG_ARRAY_L, 1);
            AdcpSubsystemCommands commands = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 0, 0));

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPON, commands.CWPON, "CWPON is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPBB_TRANSMITPULSETYPE, commands.CWPBB_TransmitPulseType, "CWPBB Transmit Pulse Type is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPBB_LAGLENGTH, commands.CWPBB_LagLength, "CWPBB Lag Length is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPAP_NUMOFPINGSAVG, commands.CWPAP_NumPingsAvg, "CWPAP Num Pings Averaged is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPAP_LAG, commands.CWPAP_Lag, "CWPAP Lag is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPAP_BLANK, commands.CWPAP_Blank, "CWPAP Blank is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPAP_BINSIZE, commands.CWPAP_BinSize, "CWPAP Bin Size is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPAP_TIME_BETWEEN_PINGS, commands.CWPAP_TimeBetweenPing, "CWPAP Time between Pings is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPBP_NUM_PING_AVG, commands.CWPBP_NumPingsAvg, "CWPBP Num Pings Averaged is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPBP_WATER_BASE_PING_TIME, commands.CWPBP_TimeBetweenBasePings, "CWPBP Time Between Base Ping is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPST_CORR_THRESH, commands.CWPST_CorrelationThresh, "CWPST Correlation is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPST_QVEL_THRESH, commands.CWPST_QVelocityThresh, "CWPST Q velocity is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWPST_VVEL_THRESH, commands.CWPST_VVelocityThresh, "CWPST V Velocity is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPBL, commands.CWPBL, "CWPBL is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPBS, commands.CWPBS, "CWPBS is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPX, commands.CWPX, "CWPX is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPBN, commands.CWPBN, "CWPBN is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPP, commands.CWPP, "CWPP is incorrect.");
            Assert.AreEqual(new TimeValue(), commands.CWPAI, "CWPAI is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWPTBP, commands.CWPTBP, "CWPTBP is incorrect.");

            Assert.AreEqual(new TimeValue(), commands.CBI_BurstInterval, "CBI Burst Interval is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBI_NUM_ENS, commands.CBI_NumEnsembles, "CBI Number of Ensemble is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTON, commands.CBTON, "CBTON is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTBB_MODE, commands.CBTBB_Mode, "CBTBB Mode is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CBTBB_LONGRANGEDEPTH, commands.CBTBB_LongRangeDepth, "CBTBB Long Range Depth is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTBB_PULSETOPULSE_LAG, commands.CBTBB_PulseToPulseLag, "CBTBB Pulse to Pulse Lag is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTST_CORR_THRESH, commands.CBTST_CorrelationThresh, "CBTST Correlation is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTST_QVEL_THRESHOLD, commands.CBTST_QVelocityThresh, "CBTST Q Velocity is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTST_VVEL_THRESHOLD, commands.CBTST_VVelocityThresh, "CBTST V Velocity is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CBTBL, commands.CBTBL, "CBTBL is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CBTMX, commands.CBTMX, "CBTMX is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CBTTBP, commands.CBTTBP, "CBTTBP is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTT_SNR_SHALLOW_DET_THRESHOLD, commands.CBTT_SNRShallowDetectionThresh, "CBTT SNR is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CBTT_DEPTH_SNR, commands.CBTT_DepthSNR, "CBTT Depth SNR is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CBTT_SNR_DEEP_DET_THRESHOLD, commands.CBTT_SNRDeepDetectionThresh, "CBTT SNR Deep Depth Detection Threshold is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CBTT_DEPTH_GAIN, commands.CBTT_DepthGain, "CBTT Depth Gain is incorrect.");

            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWTON, commands.CWTON, "CWTON is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_CWTBB, commands.CWTBB, "CWTBB is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWTBL, commands.CWTBL, "CWTBL is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWTBS, commands.CWTBS, "CWTBS is incorrect.");
            Assert.AreEqual(AdcpSubsystemCommands.DEFAULT_75_CWTTBP, commands.CWTTBP, "CWTTBP is incorrect.");
        }
开发者ID:rowetechinc,项目名称:RTI,代码行数:60,代码来源:AdcpSubsystemCommandsTest.cs

示例12: CWPX1

        public void CWPX1()
        {
            Subsystem ss = new Subsystem(Subsystem.SUB_600KHZ_VERT_PISTON_B, 1);
            AdcpSubsystemCommands ssc = new AdcpSubsystemCommands(new SubsystemConfiguration(ss, 4, 0));
            ssc.CWPX = 0.2345f;

            Assert.AreEqual("CWPX[4] 0.2345", ssc.CWPX_CmdStr(), "CWPX Cmd Str is incorrect.");
        }
开发者ID:rowetechinc,项目名称:RTI,代码行数:8,代码来源:AdcpSubsystemCommandsTest.cs

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

示例14: CWPP

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

            Assert.AreEqual("CWPP[7] 33", ssc.CWPP_CmdStr(7), "CWPP Cmd Str is incorrect.");
        }
开发者ID:rowetechinc,项目名称:RTI,代码行数:8,代码来源:AdcpSubsystemCommandsTest.cs

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


注:本文中的Subsystem类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。