Closed Hakansv closed 1 year ago
Running on Win10 Debug in VS. O 5.7.1 present master. Radar_pi present master. I can brake on "PlugInAISDrawGL()" in RadarCanvas.cpp but don't understand where to look for possible cached AIS targets.
I also tested, first I had a crash in PlugInAISDraw(), I pulled the latest version of O, no crash anymore. It seems problem is in PlugInAISDraw(). O itself is showing AIS fine. But radar_pi is using TTM with a different symbol.
The TTM symbol is showing fine on the overlay.
"TTM symbol on overlay.." Is it the ARPA on chart overlay you mean?. Yes that's fine.
Douwe..
"But radar_pi is using TTM with a different symbol."
Where, except sending ARPA info to "PushNMEABuffer", is TTM used in radar_pi?
Only for ARPA. Other thing: is the chart_scale = 0 OK in yr debug output? looks strange. I will check tomorrow.
If I understand this correct PlugInAISDrawGL in RadarCanvas.cpp will send data to Pluginmanager.cpp that will use the data and call AISDraw() to find the PPI window and draw AIS targets on that screen position? So far I can follow it. But I'm not sure what content would be there and what's missed since no of the AIS targets found are drawn on the PPI window. I may need help to exterminate.
Funny, I just started on this this weekend as well. I haven't gotten a full O dev env where I can trace into O yet, working on that. I've looked at O viewport.cpp
and I don't think chart_scale
matters, but setting it to a non-zero value will not hurt. But maybe some other viewport variable is now needed.
Possibly lat_min/lat_max/lon_min/lon_max or bValid. Setting them certainly wouldn't be bad.
Hakan...
Not sure I am following this.
Can you re-state the problem, functionally?
Not Hakan here, but the original issue was about the AIS targets not showing on the PPI window, they did in the past and there is an option to toggle them on/off on that PPI window
I have reproduced the error, working on a fix now. Not a flaw in radar_pi. It is regressive change in OCPN core involving OpenGL upgrades recently implemented. More as I proceed.
Corrected, in github master now. No change required to radar_pi.
Works fine, very good! Thanks
Confirmed fixed with https://github.com/OpenCPN/OpenCPN/commit/0d019bc72003e01863791f30c5abdea5a1294cd6
Seems there may be some changed API for AIS targets to PPI in 5.7.x beta? The Json transfer still works though.