Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #17 #18

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fixes #17
  • Loading branch information
Daniel Baldwin committed Dec 19, 2022
commit 933fabdbbed51ff8af77278c1b5f7401c126d7e0
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode/
.devcontainer/
*.deb
*.egg
*.egg-info/
Expand Down
2 changes: 1 addition & 1 deletion adsbcot/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def adsb_to_cot_xml( # NOQA pylint: disable=too-many-locals,too-many-branches,t
contact.set("callsign", callsign)

track: ET.Element = ET.Element("track")
track.set("course", str(craft.get("trk", "9999999.0")))
track.set("course", str(craft.get("track", "9999999.0")))

# gs: ground speed in knots
gnds = int(craft.get("gs", 0))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_adsb_to_cot(self):
assert detail[0].attrib["uid"] == "ICAO-A9EE47"

track = detail[0].findall("track")
assert track[0].attrib["course"] == "9999999.0"
assert track[0].attrib["course"] == "50.1"
assert track[0].attrib["speed"] == "40.641076"


Expand Down