View Single Post
Old 11-08-07, 08:16 AM   #11
Dr.Sid
The Old Man
 
Join Date: May 2005
Location: Czech Republic
Posts: 1,458
Downloads: 6
Uploads: 0
Default

Ok .. here is the demo: http://roger.questions.cz/other/AutoTMA.zip



It is useless for actual TMA, it only tests and demonstrates the method.
White circles represents ownship. White lines are the LOBs.
Blue circles is test target. It is used to generate the LOBs.
Green circles is the solution computed from the LOBs.
You can use left mouse button to move the test target, and right mouse button to change it's course and speed. Solution is recomputed. It should place the green circles into the blue ones.
Note that with manual test target placement it is almost impossible to create 'no solution' situation. You simply won't be able to create the LOBs parallel enough and even slight change in direction will be taken into acount and solution will be found (end pretty exact one too).

This uses the matrix mentioned above. I only had small glitch in matrix determinant, it was easy to find and fix when I knew the matrix is OK.
Dr.Sid is offline