Main Content

info

Read Update Rate, GPS Lock information and number of satellites in View for the GPS receiver

Description

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.

Input Arguments

collapse all

The GPS object with the default or specified properties.

Output Arguments

collapse all

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