Skip to content

ui/map/aircraft/AircraftCreationForm

Classes

AircraftCreationForm

Defined in: ui/map/aircraft/AircraftCreationForm.ts:47

AircraftCreationForm - the Create Aircraft modal, extracted from AircraftCreationManager.

Owns the form half of aircraft creation: input validation, unit labels/conversion, the aircraft-type autocomplete with openap warning, the advisory duplicate-ID warning, and CRE command generation for manual mode. Map mode hands the validated form data to the manager via the onStartDrawing callback, which runs the map drawing state machine.

Constructors

Constructor
new AircraftCreationForm(onStartDrawing): AircraftCreationForm;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:53

Parameters
onStartDrawing

(data) => void

Returns

AircraftCreationForm

Methods

showModal()
showModal(): void;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:144

Show the aircraft creation modal

Returns

void

Interfaces

AircraftCreationData

Defined in: ui/map/aircraft/AircraftCreationForm.ts:12

Form values captured for map-based creation: everything except the position/heading, which the user draws on the map afterwards.

Properties

id
id: string;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:13

actype
actype: string;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:14

altDisplay
altDisplay: number;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:15

altUnit
altUnit: AltitudeUnit;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:16

spdDisplay
spdDisplay: number;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:17

spdUnit
spdUnit: SpeedUnit;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:18

Functions

convertAltitudeToFeet()

function convertAltitudeToFeet(value, fromUnit): number;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:24

Convert altitude from any unit to feet (for BlueSky commands)

Parameters

value

number

fromUnit

AltitudeUnit

Returns

number


convertSpeedToKnots()

function convertSpeedToKnots(value, fromUnit): number;

Defined in: ui/map/aircraft/AircraftCreationForm.ts:32

Convert speed from any unit to knots (for BlueSky commands)

Parameters

value

number

fromUnit

SpeedUnit

Returns

number