GPSSatellitesInView objects
The Satellite[ ] property array returns information about the azimuth, elevation, signal strength, and PRN number of each of the satellites currently in view.
The Satellite property holds an array of GPSSatellitePosition structures. The following statements create an instance of a GPSSatellitesInView object and write information about each satellite to a multiline edit box:
// instance variable: GPSSatellitePosition iGPS_SP[] SerialGPS myGPS
GPSSatellitesInView mySIV
Integer rc myGPS = CREATE SerialGPS rc = myGPS.open() mySIV = myGPS.getSatellitesInView() int count for count = 1 to UpperBound(iGPS_SP) mle_1.text += String(iGPS_SP[i].PRN + " " mle_1.text += String(iGPS_SP[i].Azimuth + " " mle_1.text += String(iGPS_SP[i].Elevation + " " mle_1.text += String(iGPS_SP[i].SNR + "~r~n " end for
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |