Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore potential ARPA targets close to existing AIS/ARPA/MARPA targets #266

Closed
keesverruijt opened this issue Aug 15, 2017 · 3 comments
Closed
Assignees

Comments

@keesverruijt
Copy link
Owner

Do not recognise ARPA target closer than a certain distance from an existing target, especially an AIS target. This is to prevent ARPA picking up targets already seen as AIS targets.

@marcus-aa
Copy link

marcus-aa commented Aug 15, 2017 via email

@Hakansv
Copy link
Contributor

Hakansv commented Aug 15, 2017

I'm not sure if I misunderstand this issue but we're actually trying to not view (M)ARPA targets covered by a nearby AIS target. See RadarMarpa.ccp at around row 910:
`// Check for AIS target at (M)ARPA position
double posOffset = (double)m_pi->m_settings.AISatARPAoffset;
// Default 18 >> look 36 meters around + 3% of distance to target

double dist2target = (3.0 / 100) * (double)pol.r / (double)RETURNS_PER_LINE * m_ri->m_range_meters;
posOffset += dist2target;
if (m_pi->FindAIS_at_arpaPos(m_position.lat, m_position.lon, posOffset)) s = L;
PassARPAtoOCPN(&pol, s);
}`

It may possible to streamline this function using the facilities of API 1.14 instead of JSON messages and the updated array table?

@keesverruijt
Copy link
Owner Author

hhmm, I hadn't actually looked at that code. I just logged the issue because I had a number of AIS targets show up with a ARPA target right besides it. I did have a slight heading misalignment -- maybe that caused it. The track and "COG/SOG" of the ARPA target matched perfectly, so the Kalman filter is working beautifully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants