Skip to content

Commit

Permalink
use speed / heading / vrate from mlat results if available
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed May 4, 2021
1 parent 447fa8e commit 1ea56d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions mlat/client/jsonclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,18 @@ def handle_connected_request(self, request):
callsign = result['callsign']
squawk = result['squawk']

nsvel = result.get('nsvel')
ewvel = result.get('ewvel')
vrate = result.get('vrate')

self.coordinator.server_mlat_result(timestamp=result['@'],
addr=int(result['addr'], 16),
lat=lat,
lon=lon,
alt=alt,
nsvel=None,
ewvel=None,
vrate=None,
nsvel=nsvel,
ewvel=ewvel,
vrate=vrate,
callsign=callsign,
squawk=squawk,
error_est=error_est,
Expand Down
2 changes: 1 addition & 1 deletion mlat/client/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@

"""Just a version constant!"""

CLIENT_VERSION = "0.3.6"
CLIENT_VERSION = "0.3.7"

0 comments on commit 1ea56d1

Please sign in to comment.