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¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:53
Parameters¶
onStartDrawing¶
(data) => void
Returns¶
Methods¶
showModal()¶
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¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:13
actype¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:14
altDisplay¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:15
altUnit¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:16
spdDisplay¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:17
spdUnit¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:18
Functions¶
convertAltitudeToFeet()¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:24
Convert altitude from any unit to feet (for BlueSky commands)
Parameters¶
value¶
number
fromUnit¶
Returns¶
number
convertSpeedToKnots()¶
Defined in: ui/map/aircraft/AircraftCreationForm.ts:32
Convert speed from any unit to knots (for BlueSky commands)
Parameters¶
value¶
number
fromUnit¶
Returns¶
number