Main Content

info

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

Since R2020a

Add-On Required: This feature requires the MATLAB Support Package for Arduino Hardware add-on.

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. info gets updated after every execution of read command.

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 a 0 or 1 (logical). If GPSLocked is 0, the GPS does not have the lock to compute location or time information. If GPSLocked is 1, 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: struct

Version History

Introduced in R2020a