Track Point datatypes

class pygarmin.datatype.TrkPoint

Bases: DataType

is_valid_time()

Return whether the time is valid.

The device ignores the time value for track log points that are not recorded by the device itself, but transferred to the device by an external host. Some devices use 0x7FFFFFFF or 0xFFFFFFFF instead of zero to indicate an invalid time value.

class pygarmin.datatype.D300(posn=[0, 0], time=4294967295, new_trk=False)

Bases: TrkPoint

class pygarmin.datatype.D301(alt=1e+25, dpth=1e+25, **kwargs)

Bases: D300

is_valid_alt()

Return whether the altitude is valid.

A alt value of 1.0e25 indicates that this parameter is not supported or unknown.

is_valid_dpth()

Return whether the depth is valid.

A dpth value of 1.0e25 indicates that this parameter is not supported or unknown.

class pygarmin.datatype.D302(alt=1e+25, dpth=1e+25, temp=1e+25, **kwargs)

Bases: D300

is_valid_alt()

Return whether the altitude is valid.

A alt value of 1.0e25 indicates that this parameter is not supported or unknown.

is_valid_dpth()

Return whether the depth is valid.

A dpth value of 1.0e25 indicates that this parameter is not supported or unknown.

is_valid_temp()

Return whether the temperature is valid.

A temp value of 1.0e25 indicates that this parameter is not supported or unknown.

class pygarmin.datatype.D303(posn=[0, 0], time=4294967295, alt=1e+25, heart_rate=0)

Bases: D301

is_valid_alt()

Return whether the altitude is valid.

A alt value of 1.0e25 indicates that this parameter is not supported or unknown.

is_valid_heart_rate()

Return whether the heart rate is valid.

A heart_rate value of 0 indicates that this parameter is not supported or unknown.

class pygarmin.datatype.D304(distance=1e+25, heart_rate=0, cadence=255, sensor=False, **kwargs)

Bases: D303

is_valid_distance()

Return whether the distance is valid.

A distance value of 1.0e25, indicating that it is invalid.

is_valid_cadence()

Return whether the cadence is valid.

A cadence value of 0xFF indicates that this parameter is not supported or unknown.