fuchsia.gnss.types

Types related to GNSS locations.

This FIDL provides shared types used by GNSS drivers or services.

Added: HEAD

STRUCTS

LatLong

Defined in fuchsia.gnss.types/gnss_types.fidl

Horizontal location on earth.

FieldTypeDescriptionDefault
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.

NameValueDescription
1

Fix calculated based on direct satellite signals.

2

Fix calculated with assistance data from a server for faster and more accurate fixes.

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.

OrdinalFieldTypeDescription
altitude_meters float64

Altitude in meters above the WGS84 reference ellipsoid. Required.

vertical_accuracy_meters float64

Estimated altitude accuracy in meters. Optional.

Bearing

Defined in fuchsia.gnss.types/gnss_types.fidl

Bearing with accuracy.

OrdinalFieldTypeDescription
bearing_deg float64

Bearing in degrees. Required.

bearing_accuracy_deg float64

Estimated bearing accuracy in degrees. Optional.

FixParams

Defined in fuchsia.gnss.types/gnss_types.fidl

Parameters for fix calculation.

OrdinalFieldTypeDescription
fix_type FixType

Type of fix to establish. Required.

max_time_secs uint8

Maximum time to wait for a position fix. Required.

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 max_time_secs seconds or when the estimated accuracy is within max_dist_meters meters. Required.

HorizontalLocation

Defined in fuchsia.gnss.types/gnss_types.fidl

Horizontal location with accuracy.

OrdinalFieldTypeDescription
lat_long LatLong

Latitude and longitude. Required.

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.

OrdinalFieldTypeDescription
lat_long HorizontalLocation

Horizontal location. Required.

altitude Altitude

Altitude in meters above the WGS84 reference ellipsoid. Optional.

speed Speed

Speed at the time of calculating location. Optional.

bearing Bearing

Bearings. Optional.

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.

OrdinalFieldTypeDescription
speed_meters_per_sec float64

Speed at the time of calculating location. Required.

speed_accuracy_meters_per_sec float64

Estimated speed accuracy in meters per second. Optional.