本文整理汇总了C#中RTI.Pd0BottomTrack.Encode方法的典型用法代码示例。如果您正苦于以下问题:C# Pd0BottomTrack.Encode方法的具体用法?C# Pd0BottomTrack.Encode怎么用?C# Pd0BottomTrack.Encode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RTI.Pd0BottomTrack
的用法示例。
在下文中一共展示了Pd0BottomTrack.Encode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestRefLayerEchoIntensityBeam3EncodeMax
public void TestRefLayerEchoIntensityBeam3EncodeMax()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRefLayerEchoIntensityBeam3 = 255;
byte[] data = bt.Encode();
Assert.AreEqual(0xFF, data[65], "Reference Layer Echo Intensity Beam 3 Max Encode is incorrect.");
}
示例2: TestDelayBeforeReacquireEncodeMin
public void TestDelayBeforeReacquireEncodeMin()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtDelayBeforeReacquire = 0;
byte[] data = bt.Encode();
Assert.AreEqual(0x00, data[4], "Delay Before Reacquire LSB Min Encode is incorrect.");
Assert.AreEqual(0x00, data[5], "Delay Before Reacquire MSB Min Encode is incorrect.");
}
示例3: TestEvalAmpMinEncodeMin
public void TestEvalAmpMinEncodeMin()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtEvalAmpMin = 0;
byte[] data = bt.Encode();
Assert.AreEqual(0x00, data[7], "Evaluation Amplitude Minimum Encode is incorrect.");
}
示例4: TestBtModeEncodeMin
public void TestBtModeEncodeMin()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtMode = 0;
byte[] data = bt.Encode();
Assert.AreEqual(0x00, data[9], "BT Mode Encode is incorrect.");
}
示例5: TestCorrelationBeam3EncodeMax
public void TestCorrelationBeam3EncodeMax()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtCorrelationMagnitudeBeam3 = 255;
byte[] data = bt.Encode();
Assert.AreEqual(0xFF, data[35], "Correlation Beam 3 Max Encode is incorrect.");
}
示例6: 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.");
}
示例7: TestVelocityBeam3EncodeMax
public void TestVelocityBeam3EncodeMax()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtVelocityBeam3 = 32767;
byte[] data = bt.Encode();
Assert.AreEqual(0xFF, data[30], "Velocity Beam 3 LSB Max Encode is incorrect.");
Assert.AreEqual(0x7F, data[31], "Velocity Beam 3 MSB Max Encode is incorrect.");
}
示例8: TestRefLayerPercentGoodBeam2EncodeMax
public void TestRefLayerPercentGoodBeam2EncodeMax()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRefLayerPercentGoodBeam2 = 255;
byte[] data = bt.Encode();
Assert.AreEqual(0xFF, data[68], "Reference Layer Percent Good Beam 2 Max Encode is incorrect.");
}
示例9: TestAmplitudeBeam2EncodeMax
public void TestAmplitudeBeam2EncodeMax()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtAmplitudeBeam2 = 255;
byte[] data = bt.Encode();
Assert.AreEqual(0xFF, data[38], "Amplitude Beam 2 Max Encode is incorrect.");
}
示例10: TestRefLayerNearEncodeMax
public void TestRefLayerNearEncodeMax()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRefLayerNear = 9999;
byte[] data = bt.Encode();
Assert.AreEqual(0x0F, data[46], "Reference Layer Near LSB Max Encode is incorrect.");
Assert.AreEqual(0x27, data[47], "Reference Layer Near MSB Max Encode is incorrect.");
}
示例11: TestRefLayerPercentGoodBeam1Encode
public void TestRefLayerPercentGoodBeam1Encode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRefLayerPercentGoodBeam1 = 76;
byte[] data = bt.Encode();
Assert.AreEqual(0x4C, data[67], "Reference Layer Percent Good Beam 1 Encode is incorrect.");
}
示例12: TestRefLayerNearEncode
public void TestRefLayerNearEncode()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRefLayerNear = 755;
byte[] data = bt.Encode();
Assert.AreEqual(0xF3, data[46], "Reference Layer Near LSB Encode is incorrect.");
Assert.AreEqual(0x02, data[47], "Reference Layer Near MSB Encode is incorrect.");
}
示例13: TestRefLayerMinEncodeMin
public void TestRefLayerMinEncodeMin()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRefLayerMin = 0;
byte[] data = bt.Encode();
Assert.AreEqual(0x00, data[44], "Reference Layer Minimum LSB Min Encode is incorrect.");
Assert.AreEqual(0x00, data[45], "Reference Layer Minimum MSB Min Encode is incorrect.");
}
示例14: TestRefLayerMinEncodeFar
public void TestRefLayerMinEncodeFar()
{
Pd0BottomTrack bt = new Pd0BottomTrack();
bt.BtRefLayerFar = 0;
byte[] data = bt.Encode();
Assert.AreEqual(0x00, data[48], "Reference Layer Far LSB Min Encode is incorrect.");
Assert.AreEqual(0x00, data[49], "Reference Layer Far MSB Min Encode is incorrect.");
}
示例15: 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.");
}