Waypoint datatypes
- class garmin.D101(dst=0, smbl=0, **kwargs)
Bases:
D100
- is_valid_dst()
Return whether the proximity distance is valid.
A
dst
value of 1.0e25 indicates that this parameter is not supported or unknown.
- class garmin.D103(smbl=0, dspl=0, **kwargs)
Bases:
D100
- get_smbl()
Return the symbol value.
- get_dspl()
Return the display attribute value.
- class garmin.D106(wpt_class=0, subclass=(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), wpt_ident=b'', lnk_ident=b'', **kwargs)
Bases:
D101
- class garmin.D107(dst=0, color=0, **kwargs)
Bases:
D103
- get_color()
Return the color value.
- is_valid_dst()
Return whether the proximity distance is valid.
A
dst
value of 1.0e25 indicates that this parameter is not supported or unknown.
- class garmin.D108(wpt_class=0, color=255, attr=96, smbl=0, subclass=(0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255), alt=1e+25, dpth=1e+25, dist=1e+25, state=b'', cc=b'', cmnt=b'', facility=b'', city=b'', addr=b'', cross_road=b'', **kwargs)
Bases:
D103
- get_wpt_class()
return the waypoint class value.
if an invalid value is received, the value will be user_wpt.
- get_color()
return the color value.
- get_smbl()
Return the symbol value.
- 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_dist()
Return whether the proximity distance is valid.
A
dist
value of 1.0e25 indicates that this parameter is not supported or unknown.
- class garmin.D109(dtyp=1, dspl_color=0, attr=112, ete=4294967295, **kwargs)
Bases:
D108
- get_color()
Return the color value.
The
dspl_color
member contains three fields; bits 0-4 specify the color, bits 5-6 specify the waypoint display attribute and bit 7 is unused and must be 0.
- get_dspl()
Return the display attribute value.
The
dspl_color
member contains three fields; bits 0-4 specify the color, bits 5-6 specify the waypoint display attribute and bit 7 is unused and must be 0.If an invalid display attribute value is received, the value will be Name.
- class garmin.D110(attr=128, temp=1e+25, time=4294967295, wpt_cat=0, **kwargs)
Bases:
D109
- get_wpt_class()
Return the waypoint class value.
If an invalid value is received, the value will be user_wpt.
- get_color()
Return the color value.
The
dspl_color
member contains three fields; bits 0-4 specify the color, bits 5-6 specify the waypoint display attribute and bit 7 is unused and must be 0.If an invalid color value is received, the value will be Black.
- get_dspl()
Return the display attribute value.
The
dspl_color
member contains three fields; bits 0-4 specify the color, bits 5-6 specify the waypoint display attribute and bit 7 is unused and must be 0.If an invalid display attribute value is received, the value will be Name.
- get_wpt_cat()
Return a list of waypoint categories.
The
wpt_cat
member contains a 16 bits that provide category membership information for the waypoint. If a bit is set then the waypoint is a member of the corresponding category.
- is_valid()
Return whether the waypoint is valid.
A waypoint is invalid if the
lat
member of theposn
member contains a value greater than 2^30 or less than -2^30
- is_valid_temp()
Return whether the temperature is valid.
A
temp
value of 1.0e25 indicates that this parameter is not supported or unknown.
- is_valid_time()
Return whether the time is valid.
A
time
value of 0xFFFFFFFF that this parameter is not supported or unknown.
- class garmin.D150(ident=b'', cc=b'', wpt_class=0, posn=[0, 0], alt=1e+25, city=b'', state=b'', facility=b'', cmnt=b'')
Bases:
Wpt
- get_wpt_class()
Return the waypoint class value.
If an invalid value is received, the value will be user_wpt.