
User Manual LR-16F
OMEN-16F-202012
25
The horizontal offset of each channel of the radar is set as A
The vertical offset of each channel of the radar is set as B
The spatial coordinate system of each channel of the radar is set as X, Y, Z
Level Difference compensate table offsetH
vertical Difference compensate table offsetV
The calculation formula for space coordinates is
:
X = R * cos(
ω
) * sin(
α
) + A * cos(
α
)
Y = R * cos(
ω
) * cos(
α
) - A * sin(
α
)
Z = R * sin(
ω
) + B
*/
X = (int)(R * Math.Cos(wTemp) * Math.Sin(ang) + offsetH * Math.Sin(ang));
Y = (int)(R * Math.Cos(wTemp) * Math.Cos(ang) - offsetH * Math.Cos(ang));
Z = (float)(R * Math.Sin(wTemp) + offsetV);
Color = Color.FromArgb(100, (int)Reflection, 0);
}
}
Appendix F: analysis of interpolation code
//Differential complement
for (int i = 0; i < 16; i++)
{
var w = ChList[i];
ushort t2 = BitConverter.ToUInt16(block, 52 + i * 3);
byte f2 = block[54 + i * 3];
if (f2 > 0)
{
//3D point oper,Convert polar coordinates to spatial coordinates
and make coefficient compensation
var pB = new Lpoint3DTemp()
{
R = t2, //In this type of 3D radar, the return unit system
is 2mm
Ang = ang + (uint)18,
W = w,
Reflection = f2,
Ch = 16 + i,
SubConst = SubConstList[i],
};
if (Vlist?.Length > 16) pB.Temperature = Vlist[i + 1];
pB.Init();
Plist.Add(pB);
}
}