IanMayo / ZigDetector

Algorithm to detect target zigs
Eclipse Public License 1.0
0 stars 0 forks source link

Calculate values of B,P,Q #1

Open IanMayo opened 9 years ago

IanMayo commented 9 years ago

Note: I've created a spreadsheet as a placeholder for this work.

Since we know the true state data for Ownship and Target, it's possible to calculate the actual values of B,P,Q in periods when the two vessels are on straight courses.

This task is to create two Worksheets in the above spreadsheet, one for Scen1 and the other for Scen2.

You'll import the CSV from the data folder, then collate the data as appropriate to calculate the ArcTan formula.

I suggest you arrange the data so that you have one time-step per row, with both ship's data on that row. Then it will be easy to calculate range and bearing.

The working spreadsheet will have columns of calculated P and Q - one value per row.

Graphs will show the periods when P and Q remain steady - as confirmation that the ArcTan formula applies to Ships with steady state.

The Ownship and Target data-files are in this format:

  1. Date and Time, in the format YYMMDD hhmmss
  2. Ship name (ignore)
  3. X coordinate (m)
  4. Y coordinate (m)
  5. Depth (m)
  6. Speed (m/s)
  7. Course (degs)

The other columns can be ignored.

And, this is the format of the sensor data-file:

  1. Date-Time
  2. Ship name (ignore)
  3. X coordinate (m)
  4. Y coordinate (m)
  5. depth (m)
  6. Bearing (Degrees)
IanMayo commented 9 years ago

I now wish to see these in the application output, so I'll calculate them in Java