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:
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:
The other columns can be ignored.
And, this is the format of the sensor data-file: