skytracker.models.state.StateGeography#
- class skytracker.models.state.StateGeography(*, position: tuple[float, float], geo_altitude: float | None, baro_altitude: float | None, heading: float | None, speed_horizontal: float | None, speed_vertical: float | None, is_on_ground: bool)#
Bases:
BaseModelState geography data
Properties
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
latitude/longitude position [deg]
geometric altitude [m]
barometric altitude [m]
heading [deg]
horizontal speed [m/s]
vertical speed [m/s]
whether aircraft is on ground
Methods
- __init__(**data: Any) None#
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- baro_altitude: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Barometric altitude [m]')]#
barometric altitude [m]
- Type:
float | None
- geo_altitude: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Geometric altitude [m]')]#
geometric altitude [m]
- Type:
float | None
- heading: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Heading [deg]')]#
heading [deg]
- Type:
float | None
- is_on_ground: Annotated[bool, FieldInfo(annotation=NoneType, required=True, description='Whether aircraft is on ground')]#
whether aircraft is on ground
- Type:
bool
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- position: Annotated[tuple[float, float], FieldInfo(annotation=NoneType, required=True, description='Latitude/longitude position [deg]')]#
latitude/longitude position [deg]
- Type:
tuple[float, float]
- speed_horizontal: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Horizontal speed [m/s]')]#
horizontal speed [m/s]
- Type:
float | None
- speed_vertical: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Vertical speed [m/s]')]#
vertical speed [m/s]
- Type:
float | None