COMPASS icon indicating copy to clipboard operation
COMPASS copied to clipboard

Bug in Calculate Radar Plot from Pcap file

Open AlessiaDS opened this issue 1 year ago • 3 comments

When trying to plot using data from a pcap file of a CAT048 it doesn't execute it due to an error in the data source, it doesn't calculate the latitude and the longitude even if in the management of data sources they are inserted. I attach the link for the file used. https://drive.google.com/file/d/15y8Hn5GcWrU6SccNVlBbQJ8HXdvC-EYZ/view?usp=sharing

here, range and azimuth are available Screenshot 2024-07-03 alle 12 46 56

here, the radar has been configured with the correct anchor coordinates Screenshot 2024-07-03 alle 12 47 14

AlessiaDS avatar Jul 03 '24 10:07 AlessiaDS

Got it, thank you for the write-up. Will take a look and get back to you shortly.

hpuhr avatar Jul 03 '24 11:07 hpuhr

Thank you for your time.

AlessiaDS avatar Jul 03 '24 11:07 AlessiaDS

OK, so I figured out a few things - there is (as you correctly identified) a bug in this COMPASS version. But there is a workaround that should help you:

  • Use your current database, open the "Configure Data Sources" dialog
  • Select the "Unknown (35/1)" data source
  • Click in the Altitude text field, enter "0" again
  • Click "Done", close the application (which saves the configuration)
  • Open the application again, create a new database, import the PCAP file again
  • This should result in the latitude/longitude being calculated correctly (always for this data source)

image

Please let me know if this works for you (in the mean time, before we do a bugfix-release in a few weeks).

Behind the scenes, there are 2 actual issues:

  1. The Radar data source being ignored for lat/lon calculations if the altitude is "never set" (which is still displayed as 0 in the dialog even if never set, but not saved in the background configuration data if no value entered at all)
  2. If no data was imported before, the "Process" -> "Calculate Radar Plot Positions" task fails with the following assert:
    • "COMPASS-v0.7.5_hf2_newos.AppImage: /app/workspace/compass/src/projection/projectionmanager.cpp:199: unsigned int ProjectionManager::calculateRadarPlotPositions(std::__cxx11::string, std::shared_ptr<Buffer>, NullableVector&, NullableVector&): Assertion `projection.radarCoordinateSystemsAdded()' failed."

Both will be fixed in the next bug-fix release.

Please let us know if there are any other issues - in a new report or using [email protected]

hpuhr avatar Jul 03 '24 12:07 hpuhr