Skip to content

Commit

Permalink
Merge pull request #57 from semuconsulting/RC-1.0.20
Browse files Browse the repository at this point in the history
RELEASE CANDIDATE 1.0.20
  • Loading branch information
semuadmin committed Mar 5, 2024
2 parents ae893b8 + 28fa716 commit 814b85f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"editor.formatOnSave": true,
"modulename": "${workspaceFolderBasename}",
"distname": "${workspaceFolderBasename}",
"moduleversion": "1.0.19"
"moduleversion": "1.0.20"
}
8 changes: 7 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# pygnssutils Release Notes

### RELEASE CANDIDATE 1.0.19
### RELEASE 1.0.20

FIXES:

1. Fix simvector function in ubxsimulator.

### RELEASE 1.0.19

CHANGES:

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "pygnssutils"
authors = [{ name = "semuadmin", email = "[email protected]" }]
maintainers = [{ name = "semuadmin", email = "[email protected]" }]
description = "GNSS Command Line Utilities"
version = "1.0.19"
version = "1.0.20"
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.8"
Expand Down Expand Up @@ -37,7 +37,7 @@ dependencies = [
"paho-mqtt>=1.6.0",
"pyserial>=3.5",
"pyspartn>=0.2.0",
"pyubx2>=1.2.38",
"pyubx2>=1.2.39",
]

[project.scripts]
Expand Down
2 changes: 1 addition & 1 deletion src/pygnssutils/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
:license: BSD 3-Clause
"""

__version__ = "1.0.19"
__version__ = "1.0.20"
11 changes: 7 additions & 4 deletions src/pygnssutils/ubxsimulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,13 @@ def _add_vector(
"""

# convert speed to km/s
dx = speed / 1000 * cos(course) * interval
dy = speed / 1000 * sin(course) * interval
lat2 = lat + (dy / radius) * (180 / pi)
lon2 = lon + (dx / radius) * (180 / pi) / cos(lat * pi / 180)
course *= pi / 180
dn = speed / 1000 * cos(course) * interval
de = speed / 1000 * sin(course) * interval
dlat = dn / radius
dlon = de / (radius * cos(lat * pi / 180))
lat2 = lat + dlat * 180 / pi
lon2 = lon + dlon * 180 / pi
return lat2, lon2

def read(self, num: int = 1) -> bytes:
Expand Down

0 comments on commit 814b85f

Please sign in to comment.