PVT datatypes

class pygarmin.datatype.PVT

Bases: DataType

is_legacy(product_description)

Return whether the device uses a legacy software version.

According to the specification some devices use different enumerated values for fix in older software versions. However, this list of devices is ambiguous (eTrex Summit is named twice) and doesn’t include product ID’s. Therefore, we have no reliable way to ascertain whether the device is legacy or not.

This method checks the device name and software version in the product description. The list of devices and the last software version in which these different values are used is:

Device

Last Version

eMap

2.64

GPSMAP 162

2.62

GPSMAP 295

2.19

eTrex

2.10

eTrex Summit

2.07

StreetPilot III

2.10

eTrex Japanese

2.10

eTrex Venture/Mariner

2.20

eTrex Europe

2.03

GPS 152

2.01

eTrex Chinese

2.01

eTrex Vista

2.12

eTrex Summit Japanese

2.01

eTrex Summit

2.24

eTrex GolfLogix

2.49

get_msl_alt()

Return the altitude above mean sea level.

To find the altitude above mean sea level, add msl_hght (height of the WGS 84 ellipsoid above mean sea level) to alt (altitude above the WGS 84 ellipsoid).

get_datetime()

Return a datetime object of the time.

get_fix(product_description=None)

Return the fix value.

The default enumerated values for the fix member of the D800 PVT are shown below. It is important for the host to inspect this value to ensure that other data members in the D800 PVT are valid. No indication is given as to whether the device is in simulator mode versus having an actual position fix.

Some legacy devices use values for fix that are one more than the default.

class pygarmin.datatype.D800

Bases: PVT