Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
R = {
{m00,m01,m02},
{m10,m11,m12},
{m20,m21,m22}
}
The first column gives the right facing vector of the craft, the second gives an upwards pointing vector, third is a forwards vector.
So say I had a vector in local space:
V = {
{3},
{2},
{1}
}
Therefore the vectors position in global space is given by:
Vg = R * V
The first row would be calculated like so:
Vg[1] = {3*m00+2*m01+1*m02}
Second would be:
Vg[2] = {3*m10+2*m11+1*m12}
function rotate(p)
local x,y,z=p[1],p[2],p[3]
local R={}
local c1,c2,c3=M.cos(dX),M.cos(dY),M.cos(dZ)
local s1,s2,s3=M.sin(dX),M.sin(dY),M.sin(dZ)
R[1]=c1*c2*x+(c1*s2*s3-s1*c3)*y+(c1*s2*c3+s1*s3)*z
R[2]=s1*c2*x+(s1*s2*s3+c1*c3)*y+(s1*s2*c3-c1*s3)*z
R[3]=-s2*x+c2*s3*y+c2*c3*z
return R
end
P[1]=M.sin(a)*M.cos(b)*tr[e]
P[2]=M.sin(b)*tr[e]
P[3]=M.cos(a)*M.cos(b)*tr[e]
P=rotate(P)
maybe this will help you understand me
Q2: I've done it before with two radars in a hard-kill system, but keep in mind that the way the algorithm works is very restrictive. Tracks aren't updated instantaneously, the radar has to wait until it's completed a full sweep before it can update tracks. Also the algorithm assumes that for every existing track there's only one new detection. This is a problem when using multiple radars, because say there's a target that gets detected twice at different locations by two spinning radars. The algorithm's going to assume that this is two different targets, when in fact it's just one.
Q1: You mentioned earlier that you could share the code, so is it written in another language? and in that case what language would that be?
Q2: Do you think the code could support several inputs? assuming they all convert to the same coordinate system before your code.
Thanks in advance :)
This controller only works when all the radar data is processed at the same time though. That’s why tracks are updated whenever the radar finishes one full sweep. So I’d need to figure out a way to do that with the sonar.
If you wanted, I could release sections of my code for you or anyone else to improve upon. Just contact me on discord @smithy3141.