@patricksurry/g3
Version:
A flexible Javascript framework for building steam gauge instrument panels that display live external metrics from flight (or other) simulators like XPlane or MS FS2020
31 lines (30 loc) • 1.71 kB
TypeScript
import type { GaugeComponent } from '../types';
/**
* VHF Omnidirectional Range (VOR) course deviation indicator (CDI) with a rotating omni-bearing
* selector (OBS) ring, linear radial deviation needle, and TO/FROM/NAV status flags.
*/
export declare function VORGeneric(): GaugeComponent;
/**
* Automatic Direction Finder (ADF) relative bearing indicator with a rotating compass card.
*/
export declare function ADFGeneric(): GaugeComponent;
export interface KT76COptions {
/** Metric for the 4-digit squawk code, reported and set as a string like `'0400'` (default `'transponderCode'`). */
code?: string;
/** Metric for the mode selector position, one of `KT76C_MODES` by index (default `'transponderMode'`). */
mode?: string;
/** Metric that is truthy while ident is active, and the event the IDT button triggers (default `'transponderIdent'`). */
ident?: string;
/** Pressure altitude metric in feet for the flight level readout (default `'altitude.pressure'`). */
altitude?: string;
}
/** KT 76C mode selector positions; the mode metric is the index of a position. */
export declare const KT76C_MODES: readonly ["OFF", "SBY", "TST", "ON", "ALT"];
/**
* Bendix/King KT 76C TSO panel-mount aviation transponder with a 7-segment gas-discharge display
* (flight level, mode annunciators and 4-digit squawk code), a 5-position mode selector
* (`OFF / SBY / TST / ON / ALT`), `IDT` ident button, and `0–7 / CLR / VFR` code entry buttons.
* A new code is only set once all four digits have been entered.
* @param opts - Optional metric names for `code`, `mode`, `ident` and `altitude`
*/
export declare function transponderKT76C(opts?: KT76COptions): GaugeComponent;