Getting positions from gpsd in a Qt quick program
问题 I have a computer with a GPS connected to a serial port that is running gpsd with a pretty basic configuration. Here is the contents of /etc/default/gpsd: START_DAEMON="true" USBAUTO="false" DEVICES="/dev/ttyS0" GPSD_OPTIONS="-n -G" GPSD_SOCKET="/var/run/gpsd.sock" With this config, gpsd runs fine and all gpsd client utilities, e.g. cgps, gpspipe, gpsmon, can get data from the GPS. I am trying to access GPS data from a Qt QML program using the PositionSource element with the following syntax