update docstring

This commit is contained in:
Junzi Sun
2020-05-04 00:56:36 +02:00
parent d77d1f7f6b
commit b51facbdc6
7 changed files with 38 additions and 39 deletions
+6 -10
View File
@@ -1,15 +1,11 @@
"""ADS-B Wrapper. """ADS-B module.
The ADS-B wrapper also imports functions from the following modules: The ADS-B module also imports functions from the following modules:
- pyModeS.decoder.bds.bds05 - pyModeS.decoder.bds.bds05: ``airborne_position()``, ``airborne_position_with_ref()``, ``altitude()``
Functions: ``airborne_position``, ``airborne_position_with_ref``, ``altitude`` - pyModeS.decoder.bds.bds06: ``surface_position()``, ``surface_position_with_ref()``, ``surface_velocity()``
- pyModeS.decoder.bds.bds06 - pyModeS.decoder.bds.bds08: ``category()``, ``callsign()``
Functions: ``surface_position``, ``surface_position_with_ref``, ``surface_velocity`` - pyModeS.decoder.bds.bds09: ``airborne_velocity()``, ``altitude_diff()``
- pyModeS.decoder.bds.bds08
Functions: ``category``, ``callsign``
- pyModeS.decoder.bds.bds09
Functions: ``airborne_velocity``, ``altitude_diff``
""" """
+1 -1
View File
@@ -36,7 +36,7 @@ def cs20(msg):
"""Aircraft callsign """Aircraft callsign
Args: Args:
msg (str): 28 hexdigits (BDS40) string msg (str): 28 hexdigits string
Returns: Returns:
string: callsign, max. 8 chars string: callsign, max. 8 chars
+3 -3
View File
@@ -54,7 +54,7 @@ def selalt40mcp(msg):
"""Selected altitude, MCP/FCU """Selected altitude, MCP/FCU
Args: Args:
msg (str): 28 hexdigits (BDS40) string msg (str): 28 hexdigits string
Returns: Returns:
int: altitude in feet int: altitude in feet
@@ -72,7 +72,7 @@ def selalt40fms(msg):
"""Selected altitude, FMS """Selected altitude, FMS
Args: Args:
msg (str): 28 hexdigits (BDS40) string msg (str): 28 hexdigits string
Returns: Returns:
int: altitude in feet int: altitude in feet
@@ -90,7 +90,7 @@ def p40baro(msg):
"""Barometric pressure setting """Barometric pressure setting
Args: Args:
msg (str): 28 hexdigits (BDS40) string msg (str): 28 hexdigits string
Returns: Returns:
float: pressure in millibar float: pressure in millibar
+5 -5
View File
@@ -61,7 +61,7 @@ def roll50(msg):
"""Roll angle, BDS 5,0 message """Roll angle, BDS 5,0 message
Args: Args:
msg (str): 28 hexdigits (BDS50) string msg (str): 28 hexdigits string
Returns: Returns:
float: angle in degrees, float: angle in degrees,
@@ -86,7 +86,7 @@ def trk50(msg):
"""True track angle, BDS 5,0 message """True track angle, BDS 5,0 message
Args: Args:
msg (str): 28 hexdigits (BDS50) string msg (str): 28 hexdigits string
Returns: Returns:
float: angle in degrees to true north (from 0 to 360) float: angle in degrees to true north (from 0 to 360)
@@ -115,7 +115,7 @@ def gs50(msg):
"""Ground speed, BDS 5,0 message """Ground speed, BDS 5,0 message
Args: Args:
msg (str): 28 hexdigits (BDS50) string msg (str): 28 hexdigits string
Returns: Returns:
int: ground speed in knots int: ground speed in knots
@@ -133,7 +133,7 @@ def rtrk50(msg):
"""Track angle rate, BDS 5,0 message """Track angle rate, BDS 5,0 message
Args: Args:
msg (str): 28 hexdigits (BDS50) string msg (str): 28 hexdigits string
Returns: Returns:
float: angle rate in degrees/second float: angle rate in degrees/second
@@ -159,7 +159,7 @@ def tas50(msg):
"""Aircraft true airspeed, BDS 5,0 message """Aircraft true airspeed, BDS 5,0 message
Args: Args:
msg (str): 28 hexdigits (BDS50) string msg (str): 28 hexdigits string
Returns: Returns:
int: true airspeed in knots int: true airspeed in knots
+1 -1
View File
@@ -62,7 +62,7 @@ def hdg53(msg):
"""Magnetic heading, BDS 5,3 message """Magnetic heading, BDS 5,3 message
Args: Args:
msg (str): 28 hexdigits (BDS53) string msg (str): 28 hexdigits string
Returns: Returns:
float: angle in degrees to true north (from 0 to 360) float: angle in degrees to true north (from 0 to 360)
+5 -5
View File
@@ -61,7 +61,7 @@ def hdg60(msg):
"""Megnetic heading of aircraft """Megnetic heading of aircraft
Args: Args:
msg (str): 28 hexdigits (BDS60) string msg (str): 28 hexdigits string
Returns: Returns:
float: heading in degrees to megnetic north (from 0 to 360) float: heading in degrees to megnetic north (from 0 to 360)
@@ -90,7 +90,7 @@ def ias60(msg):
"""Indicated airspeed """Indicated airspeed
Args: Args:
msg (str): 28 hexdigits (BDS60) string msg (str): 28 hexdigits string
Returns: Returns:
int: indicated airspeed in knots int: indicated airspeed in knots
@@ -108,7 +108,7 @@ def mach60(msg):
"""Aircraft MACH number """Aircraft MACH number
Args: Args:
msg (str): 28 hexdigits (BDS60) string msg (str): 28 hexdigits string
Returns: Returns:
float: MACH number float: MACH number
@@ -126,7 +126,7 @@ def vr60baro(msg):
"""Vertical rate from barometric measurement, this value may be very noisy. """Vertical rate from barometric measurement, this value may be very noisy.
Args: Args:
msg (str): 28 hexdigits (BDS60) string msg (str): 28 hexdigits string
Returns: Returns:
int: vertical rate in feet/minutes int: vertical rate in feet/minutes
@@ -152,7 +152,7 @@ def vr60ins(msg):
"""Vertical rate measurd by onbard equiments (IRS, AHRS) """Vertical rate measurd by onbard equiments (IRS, AHRS)
Args: Args:
msg (str): 28 hexdigits (BDS60) string msg (str): 28 hexdigits string
Returns: Returns:
int: vertical rate in feet/minutes int: vertical rate in feet/minutes
+17 -14
View File
@@ -1,21 +1,24 @@
"""Comm-B Wrapper. """Comm-B module.
The Comm-B wrapper imports all functions from the following modules: The Comm-B module imports all functions from the following modules:
**ELS - elementary surveillance** ELS - elementary surveillance
- pyModeS.decoder.bds.bds10
- pyModeS.decoder.bds.bds17
- pyModeS.decoder.bds.bds20
- pyModeS.decoder.bds.bds30
**EHS - enhanced surveillance** - pyModeS.decoder.bds.bds10
- pyModeS.decoder.bds.bds40 - pyModeS.decoder.bds.bds17
- pyModeS.decoder.bds.bds50 - pyModeS.decoder.bds.bds20
- pyModeS.decoder.bds.bds60 - pyModeS.decoder.bds.bds30
**MRAR and MHR** EHS - enhanced surveillance
- pyModeS.decoder.bds.bds44
- pyModeS.decoder.bds.bds45 - pyModeS.decoder.bds.bds40
- pyModeS.decoder.bds.bds50
- pyModeS.decoder.bds.bds60
MRAR and MHR
- pyModeS.decoder.bds.bds44
- pyModeS.decoder.bds.bds45
""" """