有没有做过gps的GGA 语句的 正在使用解算位置的卫星数量,HDOP水平精度因子,分别赋值给哪个结构体的啊??
typedef struct {
/** Number of SVs currently visible. */
int num_svs; /** Contains an array of SV information. */
GpsSvInfo sv_list[GPS_MAX_SVS]; /** Represents a bit mask indicating which SVs
* have ephemeris data.
*/
uint32_t ephemeris_mask; /** Represents a bit mask indicating which SVs
* have almanac data.
*/
uint32_t almanac_mask; /**
* Represents a bit mask indicating which SVs
* were used for computing the most recent position fix.
*/
uint32_t used_in_fix_mask;
} GpsSvStatus;typedef struct {
/** Contains GpsLocationFlags bits. */
uint16_t flags;
/** Represents latitude in degrees. */
double latitude;
/** Represents longitude in degrees. */
double longitude;
/** Represents altitude in meters above the WGS 84 reference
* ellipsoid. */
double altitude;
/** Represents speed in meters per second. */
float speed;
/** Represents heading in degrees. */
float bearing;
/** Represents expected accuracy in meters. */
float accuracy;
/** Timestamp for the location fix. */
GpsUtcTime timestamp;
} GpsLocation;
typedef struct {
/** Number of SVs currently visible. */
int num_svs; /** Contains an array of SV information. */
GpsSvInfo sv_list[GPS_MAX_SVS]; /** Represents a bit mask indicating which SVs
* have ephemeris data.
*/
uint32_t ephemeris_mask; /** Represents a bit mask indicating which SVs
* have almanac data.
*/
uint32_t almanac_mask; /**
* Represents a bit mask indicating which SVs
* were used for computing the most recent position fix.
*/
uint32_t used_in_fix_mask;
} GpsSvStatus;typedef struct {
/** Contains GpsLocationFlags bits. */
uint16_t flags;
/** Represents latitude in degrees. */
double latitude;
/** Represents longitude in degrees. */
double longitude;
/** Represents altitude in meters above the WGS 84 reference
* ellipsoid. */
double altitude;
/** Represents speed in meters per second. */
float speed;
/** Represents heading in degrees. */
float bearing;
/** Represents expected accuracy in meters. */
float accuracy;
/** Timestamp for the location fix. */
GpsUtcTime timestamp;
} GpsLocation;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货