Skip to main content

Class: GpsStatusDataProvider

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:30

A data provider that provides GPS status.

Constructors​

Constructor​

new GpsStatusDataProvider(bus, index): GpsStatusDataProvider

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:108

Creates an instance of the GpsDataProvider.

Parameters​

ParameterTypeDescription
busEventBusThe event bus to use with this instance.
indexnumberThe GPS system index that this provider will track.

Returns​

GpsStatusDataProvider

Properties​

activeSatellites​

readonly activeSatellites: SubscribableArray<GpsSatelliteData>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:45

The current satellites.


altitude​

readonly altitude: Subscribable<NumberUnitInterface<Distance, Unit<Distance>>>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:77

The current GPS altitude, or NaN if a GPS fix is not available.


groundSpeed​

readonly groundSpeed: Subscribable<NumberUnitInterface<Speed, Unit<Speed>>>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:81

The current GPS ground speed, or NaN if a GPS fix is not available.


groundTrack​

readonly groundTrack: Subscribable<NumberUnitInterface<"navangle", Unit<"navangle">>>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:85

The current GPS ground track, or NaN if a GPS fix is not available.


hdop​

readonly hdop: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:61

The current GPS receiver HDOP.


index​

readonly index: number

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:108

The GPS system index that this provider will track.


numInUseSatellites​

readonly numInUseSatellites: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:49

The number of active tracking satellites.


pdop​

readonly pdop: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:57

The current GPS receiver PDOP.


position​

readonly position: Subscribable<GeoPointInterface>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:69

The current GPS position. Both lat and lon will be NaN if a GPS fix is not available.


positionsCalculated​

readonly positionsCalculated: ReadonlySubEvent<GpsStatusDataProvider, void>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:53

An event that fires when the satellite positions are calculated.


receiverState​

readonly receiverState: Subscribable<AvionicsSystemState>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:33

The current GPS receiver state.


sbasState​

readonly sbasState: Subscribable<GPSSystemSBASState>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:41

The current GPS system SBAS state.


systemState​

readonly systemState: Subscribable<GPSSystemState>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:37

The current GPS system state.


time​

readonly time: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:73

The current time, as a UNIX timestamp in milliseconds.


vdop​

readonly vdop: Subscribable<number>

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:65

The current GPS receiver VDOP.

Methods​

destroy()​

destroy(): void

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:202

Destroys the data provider.

Returns​

void


init()​

init(): void

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Components/GpsStatus/GpsStatusDataProvider.ts:116

Initializes this data provider. Once initialized, this data provider will continuously update its data until paused or destroyed.

Returns​

void

Throws​

Error if this data provider is dead.