1
- A Python Mode-S Decoder
2
- =======================
1
+ The Python Mode-S Decoder
2
+ =========================
3
3
4
- Python library for Mode-S message decoding. Two separate methods are
5
- implemented to decode the following messages:
4
+ Python library for Mode-S message decoding. Support Downlink Formats (DF) are:
6
5
7
6
- Automatic Dependent Surveillance - Broadcast (ADS-B) (DF17)
8
7
@@ -25,7 +24,7 @@ implemented to decode the following messages:
25
24
- BDS 5,3 Air-referenced state vector
26
25
- BDS 6,0 Heading and speed report
27
26
28
- A detailed manual on Mode-S decoding is published by the author, at:
27
+ Detailed manual on Mode-S decoding is published by the author, at:
29
28
http://adsb-decode-guide.readthedocs.io
30
29
31
30
@@ -37,17 +36,19 @@ https://github.com/junzis/pyModeS
37
36
API documentation at:
38
37
http://pymodes.readthedocs.io
39
38
39
+
40
40
Install
41
41
-------
42
42
43
- Checkout source code, or install using pip:
43
+ The easiest installation is to use pip:
44
44
45
45
::
46
46
47
47
pip install pyModeS
48
48
49
- Usage
50
- -----
49
+
50
+ Use the library
51
+ ---------------
51
52
52
53
.. code :: python
53
54
@@ -66,8 +67,7 @@ Common functions:
66
67
pms.bin2int(str ) # Convert binary string to integer
67
68
pms.hex2int(str ) # Convert hexadecimal string to integer
68
69
69
- pms.bin2gray(str ) # Convert binary string to grey code
70
- pms.gray2bin(str ) # Convert grey code to binary string
70
+ pms.gray2int(str ) # Convert grey code to interger
71
71
72
72
73
73
Core functions for ADS-B decoding:
@@ -94,7 +94,7 @@ Core functions for ADS-B decoding:
94
94
pms.adsb.airborne_velocity(msg)
95
95
96
96
97
- Hint : When you have a fix position of the aircraft, it is convenient to
97
+ Note : When you have a fix position of the aircraft, it is convenient to
98
98
use `position_with_ref() ` method to decode with only one position message
99
99
(either odd or even). This works with both airborne and surface position
100
100
messages. But the reference position shall be with in 180NM (airborne)
@@ -164,7 +164,7 @@ Core functions for EHS decoding:
164
164
165
165
Developement
166
166
------------
167
- To run tests, run the following commands:
167
+ To perform unit tests. First install `` tox `` through pip, Then , run the following commands:
168
168
```
169
169
$ tox
170
170
```
0 commit comments