本文整理汇总了C#中RTI.Pd0BottomTrack.Decode方法的典型用法代码示例。如果您正苦于以下问题:C# Pd0BottomTrack.Decode方法的具体用法?C# Pd0BottomTrack.Decode怎么用?C# Pd0BottomTrack.Decode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RTI.Pd0BottomTrack
的用法示例。
在下文中一共展示了Pd0BottomTrack.Decode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestCorrelationBeam3Decode
public void TestCorrelationBeam3Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[35] = 0x4C;
bt.Decode(data);
Assert.AreEqual(76, bt.BtCorrelationMagnitudeBeam3, "Correlation Beam 3 Decode is incorrect.");
}
示例2: TestRSSIBeam3Decode
public void TestRSSIBeam3Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[75] = 0x4C;
bt.Decode(data);
Assert.AreEqual(76 * 0.45f, bt.BtRssiBeam3, "RSSI Beam 3 Decode is incorrect.");
}
示例3: TestVelocityBeam3Decode
public void TestVelocityBeam3Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[30] = 0xF3;
data[31] = 0x02;
bt.Decode(data);
Assert.AreEqual(755, bt.BtVelocityBeam3, "Velocity Beam 3 Decode is incorrect.");
}
示例4: TestPercentGoodBeam2Decode
public void TestPercentGoodBeam2Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[42] = 0x4C;
bt.Decode(data);
Assert.AreEqual(76, bt.BtPercentGoodBeam2, "Percent Good Beam 2 Decode is incorrect.");
}
示例5: TestReserved82_85Decode
public void TestReserved82_85Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[81] = 0x9B;
data[82] = 0x0D;
data[83] = 0x02;
data[84] = 0x00;
bt.Decode(data);
Assert.AreEqual(134555, bt.Reserved82_85, "Reserved 82-85 Decode is incorrect.");
}
示例6: TestErrVelMaxDecode
public void TestErrVelMaxDecode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[10] = 0xF3;
data[11] = 0x02;
bt.Decode(data);
Assert.AreEqual(755, bt.BtErrVelMax, "Error Velocity Max Decode is incorrect.");
}
示例7: TestGainDecode
public void TestGainDecode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[76] = 0xF3;
bt.Decode(data);
Assert.AreEqual(243, bt.BtGain, "Gain Decode is incorrect.");
}
示例8: TestRefLayerEchoIntensityBeam2Decode
public void TestRefLayerEchoIntensityBeam2Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[64] = 0x4C;
bt.Decode(data);
Assert.AreEqual(76, bt.BtRefLayerEchoIntensityBeam2, "Reference Layer Echo Intensity Beam 2 Decode is incorrect.");
}
示例9: TestAmplitudeBeam2Decode
public void TestAmplitudeBeam2Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[38] = 0x4C;
bt.Decode(data);
Assert.AreEqual(76, bt.BtAmplitudeBeam2, "Amplitude Beam 2 Decode is incorrect.");
}
示例10: TestRangeMsbBeam3Decode
public void TestRangeMsbBeam3Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[80] = 0x4C;
bt.Decode(data);
Assert.AreEqual(76, bt.BtRangeMsbBeam3, "Range MSB Beam 3 Decode is incorrect.");
}
示例11: TestRefLayerCorrelationBeam1Decode
public void TestRefLayerCorrelationBeam1Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[59] = 0x4C;
bt.Decode(data);
Assert.AreEqual(76, bt.BtRefLayerCorrBeam1, "Reference Layer Correlation Beam 1 Decode is incorrect.");
}
示例12: TestRangeLsbBeam3Decode
public void TestRangeLsbBeam3Decode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[22] = 0xF3;
data[23] = 0x02;
bt.Decode(data);
Assert.AreEqual(755, bt.BtRangeLsbBeam3, "Range LSB Beam 3 Decode is incorrect.");
}
示例13: TestPingsPerEnsembleDecode
public void TestPingsPerEnsembleDecode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[2] = 0xF3;
data[3] = 0x02;
bt.Decode(data);
Assert.AreEqual(755, bt.BtPingsPerEnsemble, "Pings Per Ensemble Decode is incorrect.");
}
示例14: TestPercentGoodMinDecode
public void TestPercentGoodMinDecode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[8] = 0xF3;
bt.Decode(data);
Assert.AreEqual(243, bt.BtPercentGoodMin, "Percent Good Minimum Decode is incorrect.");
}
示例15: TestCorrMagMinDecode
public void TestCorrMagMinDecode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[6] = 0xF3;
bt.Decode(data);
Assert.AreEqual(243, bt.BtCorrMagMin, "Correlation Magnitude Minimum Decode is incorrect.");
}