__init__(self,
time,
latitude,
longitude,
quality,
satellites,
dilution,
altitude,
geoid_delta,
dgps_delta=None,
dgps_station=None,
mode=None)
(Constructor)
|
|
Initialise a new Fix object
>>> Fix(datetime.time(14, 20, 27), 52.1380333333, -2.56861166667, 1, 4,
... 5.6, 1052.3, 34.5)
Fix(datetime.time(14, 20, 27), 52.1380333333, -2.56861166667, 1, 4, 5.6,
1052.3, 34.5, None, None, None)
>>> Fix(datetime.time(14, 20, 27), 52.1380333333, -2.56861166667, 1, 4,
... 5.6, 1052.3, 34.5, 12, 4, None)
Fix(datetime.time(14, 20, 27), 52.1380333333, -2.56861166667, 1, 4,
5.6, 1052.3, 34.5, 12, 4, None)
- Parameters:
time (datetime.time) - Time the fix was taken
latitude (float or coercible to float ) - Fix's latitude
longitude (float or coercible to float ) - Fix's longitude
quality (int ) - Mode under which the fix was taken
satellites (int ) - Number of tracked satellites
dilution (float ) - Horizontal dilution at reported position
altitude (float or coercible to float ) - Altitude above MSL
geoid_delta (float or coercible to float ) - Height of geoid's MSL above WGS84 ellipsoid
dgps_delta (float or coercible to float ) - Number of seconds since last DGPS sync
dgps_station (int ) - Identifier of the last synced DGPS station
mode (str ) - Type of reading
- Raises:
ValueError - Unknown value for angle
ValueError - Unknown value for units
ValueError - Invalid value for latitude or longitude
- Overrides:
object.__init__
|