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

Bug in Calculate Radar Plot from Pcap file #291

Open
AlessiaDS opened this issue Jul 3, 2024 · 3 comments
Open

Bug in Calculate Radar Plot from Pcap file #291

AlessiaDS opened this issue Jul 3, 2024 · 3 comments
Assignees
Labels

Comments

@AlessiaDS
Copy link

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

@hpuhr
Copy link
Owner

hpuhr commented Jul 3, 2024

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

@hpuhr hpuhr self-assigned this Jul 3, 2024
@AlessiaDS
Copy link
Author

Thank you for your time.

@hpuhr
Copy link
Owner

hpuhr commented Jul 3, 2024

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, 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 compass@openats.at

@hpuhr hpuhr added the bug label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants