-
Notifications
You must be signed in to change notification settings - Fork 38
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
Why the position can't show on map? #8
Comments
Hi @Tanggeshi,
I am very glad that you find the gnss-sdr-monitor GUI useful :)
You probably need to check your Monitor_Pvt settings. Make sure that the PVT Monitor port is activated in your GNSS-SDR configuration file and use the same port number for the This short guide will help you. Let me know if it worked well for you. Regards, |
Hey @acebrianjuan, When starting gnss-sdr-monitor I get the error: Cheers |
Hi Malte (@lenhart), I have just tested the GUI with the latest version of GNSS-SDR available in the
I also get this warning but this is nothing new, as I have always come across this warning upon starting the GUI. This is most likely caused by a failing QML property binding upon construction of the Map view. When the Map view is constructed for the first time, this causes all its child elements to be constructed too. Among these elements we have a MapQuickItem for showing the current user's position on the map, which asks to the MonitorPvtWrapper object (in charge of feeding data to the PVT-related views) for a QGeoCoordinate object via Qt's QML and C++ integration. This line (QML): gnss-sdr-monitor/src/qml/main.qml Line 43 in 4af0d8d
calls this property (C++) (which is linked to the
When there is no is no position data (such as when you start the GUI before connecting to GNSS-SDR) the function returns a default-constructed (invalid) QVariant object: gnss-sdr-monitor/src/monitor_pvt_wrapper.cpp Lines 96 to 110 in 4af0d8d
And this is when the warning message is thrown. Nevertheless, once GNSS-SDR starts feeding position data, the Map view works fine regardless of the warning. I figured that returning a QVariant with an empty QGeoCoordinate gets rid of the warning, so this is probably the right way to do it:
I have just pushed this fix in c70b053. Please let me know if it fixes the warning for you as well. Best, |
Hey Álvaro, |
GNSS-SDR-Monitor is really a very wonderful tool ! Thank you for sharing it!
I can get the Lat, Lon, Alt etc. from the status of the Telecommand interface, but in the map, there is no any information of the position. I wonder if are there some settings I have not set right?
The text was updated successfully, but these errors were encountered: