minisky.types¶
types
¶
Semantic runtime values used at parser and vectorized-state boundaries.
MiniSky keeps ordinary simulation arrays as typed numerical quantities from
minisky.quantities. These wrappers are for cases where
multiple values share the same Python carrier but their reference or variant
must survive at runtime.
AircraftTypeCode
module-attribute
¶
Aircraft model/type designator used by MiniSky and plugins.
AircraftCallsign
module-attribute
¶
Aircraft identifier used as a callsign within a simulation runtime.
AircraftIndex
module-attribute
¶
Index into the traffic arrays for an aircraft.
RouteWaypointIndex
module-attribute
¶
Index of a waypoint within an aircraft route.
IcaoAircraftTypeCode
module-attribute
¶
IcaoAircraftTypeCode: TypeAlias = AircraftTypeCode
Uppercase ICAO aircraft type designator used by OpenAP, for example A320.
WaypointReference
module-attribute
¶
Stored waypoint source, e.g. EHAM, EHAM/RW18L, or 52.0,4.0.
WaypointIdentifier
module-attribute
¶
Navigation-dataset waypoint identifier, for example SUGOL.
AirportIdentifier
module-attribute
¶
Navigation-database airport identifier, commonly a four-letter ICAO code such as EHAM.
RunwayIdentifier
module-attribute
¶
Runway designator without an RW prefix, for example 09 or 25L.
AirwayIdentifier
module-attribute
¶
Published airway identifier, for example UL620.
RuntimeNewType
¶
Base class for runtime newtypes.
The generic carrier preserves constraints and container types independently
of the semantic wrapper, for example CasMps[IsFinite[Gt0[float]]] or
CasMps[np.ndarray].
See: https://doc.rust-lang.org/rust-by-example/generics/new_types.html
OptionalAirspeedKind
¶
CasMps
dataclass
¶
CasMps(value: CalibratedAirspeedMps[_T])
Bases: RuntimeNewType[_T]
Calibrated airspeed normalized to metres per second.
Note that in minisky, IAS is used interchangeably with CAS, assuming zero instrument and position errors.
Mach
dataclass
¶
Mach(value: MachNumber[_T])
StdPressureAltM
dataclass
¶
StdPressureAltM(value: PressureAltitudeM[_T])
Bases: RuntimeNewType[_T]
Barometric pressure altitude on the standard-pressure reference.
QNE is the standard altimeter setting and flight levels are the operational designation for the standard-pressure reference (1013.25 hPa).
In ICAO Field 15:
F + 3 digits= flight level, digits in hundreds of feet, andS + 4 digits= standard metric level, digits in tens of metres
MslAltM
dataclass
¶
MslAltM(value: MslAltitudeM[_T])
Bases: RuntimeNewType[_T]
Altitude above mean sea level.
QNH is the altimeter subscale pressure setting chosen so a correctly calibrated pressure altimeter indicates altitude relative to mean sea level.
In ICAO Field 15:
A + 3 digits= altitude in hundreds of feetM + 4 digits= altitude in tens of metres
TrueHeadingDeg
dataclass
¶
TrueHeadingDeg(value: TrueHeadingDegrees[_T])
MagneticHeadingDeg
dataclass
¶
MagneticHeadingDeg(value: MagneticHeadingDegrees[_T])
GroundTrackDeg
dataclass
¶
GroundTrackDeg(value: GroundTrackDeg[_T])
LatLonDegrees
dataclass
¶
LatLonDegrees(lat: LatitudeDeg[_T], lon: LongitudeDeg[_T])