File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def is50(msg: str) -> bool:
50
50
return False
51
51
52
52
tas = tas50 (msg )
53
- if tas is not None and tas > 500 :
53
+ if tas is not None and tas > 600 :
54
54
return False
55
55
56
56
if (gs is not None ) and (tas is not None ) and (abs (tas - gs ) > 200 ):
@@ -145,11 +145,9 @@ def rtrk50(msg: str) -> Optional[float]:
145
145
if d [34 ] == "0" :
146
146
return None
147
147
148
- if d [36 :45 ] == "111111111" :
149
- return None
150
-
151
148
sign = int (d [35 ]) # 1 -> negative value, two's complement
152
149
value = common .bin2int (d [36 :45 ])
150
+
153
151
if sign :
154
152
value = value - 512
155
153
Original file line number Diff line number Diff line change @@ -150,10 +150,8 @@ def vr60baro(msg: str) -> Optional[int]:
150
150
sign = int (d [35 ]) # 1 -> negative value, two's complement
151
151
value = common .bin2int (d [36 :45 ])
152
152
153
- if value == 0 or value == 511 : # all zeros or all ones
154
- return 0
155
-
156
- value = value - 512 if sign else value
153
+ if sign :
154
+ value = value - 512
157
155
158
156
roc = value * 32 # feet/min
159
157
return roc
@@ -176,10 +174,8 @@ def vr60ins(msg: str) -> Optional[int]:
176
174
sign = int (d [46 ]) # 1 -> negative value, two's complement
177
175
value = common .bin2int (d [47 :56 ])
178
176
179
- if value == 0 or value == 511 : # all zeros or all ones
180
- return 0
181
-
182
- value = value - 512 if sign else value
177
+ if sign :
178
+ value = value - 512
183
179
184
180
roc = value * 32 # feet/min
185
181
return roc
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " pyModeS"
3
- version = " 2.18 "
3
+ version = " 2.19 "
4
4
description = " Python Mode-S and ADS-B Decoder"
5
5
authors = [" Junzi Sun <j.sun-1@tudelft.nl>" ]
6
6
license = " GNU GPL v3"
You can’t perform that action at this time.
0 commit comments