本文整理汇总了C#中RTI.Pd0BottomTrack类的典型用法代码示例。如果您正苦于以下问题:C# Pd0BottomTrack类的具体用法?C# Pd0BottomTrack怎么用?C# Pd0BottomTrack使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Pd0BottomTrack类属于RTI命名空间,在下文中一共展示了Pd0BottomTrack类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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.");
}
示例2: 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.");
}
示例3: TestGetRangeBeam0
public void TestGetRangeBeam0()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[16] = 0x39; // LSB LSB
data[17] = 0x30; // LSB MSB (12345)
data[77] = 0x4C; // MSB (76)
bt.Decode(data);
// (76 * 65535 ) + 12345 = 4980736 + 12345 = 4993081
Assert.AreEqual(4993005, bt.GetRangeBeam0(), "GetRangeBeam0() is incorrect.");
}
示例4: 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.");
}
示例5: TestEvalAmpMinDecode
public void TestEvalAmpMinDecode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[7] = 0xF3;
bt.Decode(data);
Assert.AreEqual(243, bt.BtEvalAmpMin, "Evaluation Amplitude Minimum Decode is incorrect.");
}
示例6: 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.");
}
示例7: TestDelayBeforeReacquireDecode
public void TestDelayBeforeReacquireDecode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
byte[] data = new byte[Pd0BottomTrack.DATATYPE_SIZE];
// Decode the data
data[4] = 0xF3;
data[5] = 0x02;
bt.Decode(data);
Assert.AreEqual(755, bt.BtDelayBeforeReacquire, "Delay Before Reacquire Decode is incorrect.");
}
示例8: TestAmplitudeBeam3EncodeMin
public void TestAmplitudeBeam3EncodeMin()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtAmplitudeBeam3 = 0;
byte[] data = bt.Encode();
Assert.AreEqual(0x00, data[39], "Amplitude Beam 3 Min Encode is incorrect.");
}
示例9: 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.");
}
示例10: TestRSSIBeam3EncodeMax
public void TestRSSIBeam3EncodeMax()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRssiBeam3 = 255 * 0.45f;
byte[] data = bt.Encode();
Assert.AreEqual(0xFF, data[75], "RSSI Beam 3 Max Encode is incorrect.");
}
示例11: TestRSSIBeam3EncodeMin
public void TestRSSIBeam3EncodeMin()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRssiBeam3 = 0;
byte[] data = bt.Encode();
Assert.AreEqual(0x00, data[75], "RSSI Beam 3 Min Encode is incorrect.");
}
示例12: 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.");
}
示例13: TestRSSIBeam2Encode
public void TestRSSIBeam2Encode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRssiBeam2 = 76 * 0.45f;
byte[] data = bt.Encode();
Assert.AreEqual(0x4C, data[74], "RSSI Beam 2 Encode is incorrect.");
}
示例14: TestReserved82_85Encode
public void TestReserved82_85Encode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.Reserved82_85 = 134555;
byte[] data = bt.Encode();
Assert.AreEqual(0x9B, data[81], "Reserved 82-85 Max LSB Encode is incorrect.");
Assert.AreEqual(0x0D, data[82], "Reserved 82-85 Max Encode is incorrect.");
Assert.AreEqual(0x02, data[83], "Reserved 82-85 Max Encode is incorrect.");
Assert.AreEqual(0x00, data[84], "Reserved 82-85 Max MSB Encode is incorrect.");
}
示例15: 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.");
}