MCPcopy
hub / github.com/cpaczek/skylight / RawAircraft

Interface RawAircraft

server/src/datasource.ts:12–28  ·  view source on GitHub ↗

Raw readsb-style aircraft record (subset we use).

Source from the content-addressed store, hash-verified

10
11/** Raw readsb-style aircraft record (subset we use). */
12interface RawAircraft {
13 hex?: string;
14 flight?: string;
15 lat?: number;
16 lon?: number;
17 alt_baro?: number | "ground";
18 alt_geom?: number;
19 gs?: number;
20 track?: number;
21 baro_rate?: number;
22 squawk?: string;
23 category?: string;
24 r?: string;
25 t?: string;
26 seen?: number;
27 rssi?: number;
28}
29
30function normalize(raw: RawAircraft, ts: number): Aircraft | null {
31 if (!raw.hex) return null;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected