gpsInfo= info(gpsObj)returns the update rate of the GPS receiver, GPS lock information and number of satellites from which the GPS can read signals.infogets updated after every execution ofreadcommand.
GPS module information such as update rate, and number of satellites. The output has three fields:
UpdateRate- Update Rate of the GPS Module in Hz. Update Rate of GPS receiver is estimated from the difference in time at which two RMC sentences are obtained. This value might be slightly varying from actual Update Rate of the module.
GPSLocked- This property specifies if GPS has enough information to get valid data. GPS signals are acquired easily in locations that have a clear view of the sky. It can be either a0or1(logical). IfGPSLockedis0, the GPS does not have the lock to compute location or time information. IfGPSLockedis1, GPS module has enough data to compute location or time information.
NumberOfSatellitesInView- Number of satellites from which the GPS module can read the signals.
Data Types:结构体
Version History
介绍了R2020a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
年代elect a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
How to Get Best Site Performance
年代elect the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.