File: //lib/python3/dist-packages/twisted/positioning/__pycache__/base.cpython-310.pyc
o
�b)o � @ s� d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddl
mZmZ ddl
mZ ddlmZ d Zd
ZdZG dd
� d
e�ZG dd� de�Ze ej�G dd� d��ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d!� d!e�Z G d"d#� d#e�Z!G d$d%� d%e�Z"G d&d'� d'�Z#e ej$�G d(d)� d)��Z%G d*d+� d+e%�Z&g d,�Z'd-S ).z1
Generic positioning base classes.
@since: 14.0
� )�partial)�
attrgetter)�ClassVar�Sequence)�implementer)�
NamedConstant�Names)�ipositioning)�FancyEqMixing��2Tv�?gr�q��?g����ׁ�?c @ �( e Zd ZdZe� Ze� Ze� Ze� ZdS )�Anglesa�
The types of angles.
@cvar LATITUDE: Angle representing a latitude of an object.
@type LATITUDE: L{NamedConstant}
@cvar LONGITUDE: Angle representing the longitude of an object.
@type LONGITUDE: L{NamedConstant}
@cvar HEADING: Angle representing the heading of an object.
@type HEADING: L{NamedConstant}
@cvar VARIATION: Angle representing a magnetic variation.
@type VARIATION: L{NamedConstant}
N) �__name__�
__module__�__qualname__�__doc__r �LATITUDE� LONGITUDE�HEADING� VARIATION� r r �:/usr/lib/python3/dist-packages/twisted/positioning/base.pyr s
r c @ r )�
DirectionszB
The four cardinal directions (north, east, south, west).
N) r
r r r r �NORTH�EAST�SOUTH�WESTr r r r r 3 s
r c @ sP e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
d� Zdd
� Z dd� Z
dd� ZdS )�BasePositioningReceiveraS
A base positioning receiver.
This class would be a good base class for building positioning
receivers. It implements the interface (so you don't have to) with stub
methods.
People who want to implement positioning receivers should subclass this
class and override the specific callbacks they want to handle.
c C � dS )zG
Implements L{IPositioningReceiver.timeReceived} stub.
Nr )�self�timer r r �timeReceivedK � z$BasePositioningReceiver.timeReceivedc C r )zJ
Implements L{IPositioningReceiver.headingReceived} stub.
Nr )r �headingr r r �headingReceivedP r! z'BasePositioningReceiver.headingReceivedc C r )zH
Implements L{IPositioningReceiver.speedReceived} stub.
Nr �r �speedr r r �
speedReceivedU r! z%BasePositioningReceiver.speedReceivedc C r )zH
Implements L{IPositioningReceiver.climbReceived} stub.
Nr �r �climbr r r �
climbReceivedZ r! z%BasePositioningReceiver.climbReceivedc C r )zK
Implements L{IPositioningReceiver.positionReceived} stub.
Nr )r �latitude� longituder r r �positionReceived_ r! z(BasePositioningReceiver.positionReceivedc C r )zP
Implements L{IPositioningReceiver.positionErrorReceived} stub.
Nr )r �
positionErrorr r r �positionErrorReceivedd r! z-BasePositioningReceiver.positionErrorReceivedc C r )zK
Implements L{IPositioningReceiver.altitudeReceived} stub.
Nr �r �altituder r r �altitudeReceivedi r! z(BasePositioningReceiver.altitudeReceivedc C r )zT
Implements L{IPositioningReceiver.beaconInformationReceived} stub.
Nr )r �beaconInformationr r r �beaconInformationReceivedn r! z1BasePositioningReceiver.beaconInformationReceivedN)r
r r r r r# r&