Types related to GNSS locations.
This FIDL provides shared types used by GNSS drivers or services.
STRUCTS
LatLong
Defined in fuchsia.gnss.types/gnss_types.fidl
Horizontal location on earth.
Field | Type | Description | Default |
---|---|---|---|
latitude_deg |
float64
|
Latitude in degrees. |
No default |
longitude_deg |
float64
|
Longitude in degrees. |
No default |
ENUMS
FixType flexible
Type: uint32
Defined in fuchsia.gnss.types/gnss_types.fidl
Fix types depending on how GNSS receivers determine the fix.
Name | Value | Description |
---|---|---|
STANDALONE |
1 |
Fix calculated based on direct satellite signals. |
MS_BASED |
2 |
Fix calculated with assistance data from a server for faster and more accurate fixes. |
MS_ASSISTED |
3 |
Fix calculated by offloading some of the position calculation to a server. |
TABLES
Altitude
Defined in fuchsia.gnss.types/gnss_types.fidl
Altitude with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
altitude_meters |
float64
|
Altitude in meters above the WGS84 reference ellipsoid. Required. |
2 |
vertical_accuracy_meters |
float64
|
Estimated altitude accuracy in meters. Optional. |
Bearing
Defined in fuchsia.gnss.types/gnss_types.fidl
Bearing with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
bearing_deg |
float64
|
Bearing in degrees. Required. |
2 |
bearing_accuracy_deg |
float64
|
Estimated bearing accuracy in degrees. Optional. |
FixParams
Defined in fuchsia.gnss.types/gnss_types.fidl
Parameters for fix calculation.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
fix_type |
FixType
|
Type of fix to establish. Required. |
2 |
max_time_secs |
uint8
|
Maximum time to wait for a position fix. Required. |
3 |
max_dist_meters |
uint32
|
The desired accuracy for the location fix.
The modem attempts to determine the location as accurately as possible,
but will stop searching after |
HorizontalLocation
Defined in fuchsia.gnss.types/gnss_types.fidl
Horizontal location with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
lat_long |
LatLong
|
Latitude and longitude. Required. |
2 |
horizontal_accuracy_meters |
float64
|
Estimated horizontal accuracy radius in meters. Optional. |
Location
Defined in fuchsia.gnss.types/gnss_types.fidl
GNSS location.
Location provider leaves optional fields blank if the corresponding information is unavailable.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
lat_long |
HorizontalLocation
|
Horizontal location. Required. |
2 |
altitude |
Altitude
|
Altitude in meters above the WGS84 reference ellipsoid. Optional. |
3 |
speed |
Speed
|
Speed at the time of calculating location. Optional. |
4 |
bearing |
Bearing
|
Bearings. Optional. |
5 |
timestamp_gps_utc_msec |
uint64
|
GPS time at which last position fix was taken. Optional. |
Speed
Defined in fuchsia.gnss.types/gnss_types.fidl
Speed with accuracy.
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
speed_meters_per_sec |
float64
|
Speed at the time of calculating location. Required. |
2 |
speed_accuracy_meters_per_sec |
float64
|
Estimated speed accuracy in meters per second. Optional. |