git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad85154
)
Bearings were inverted.
author
CMDR furrycat
<elite@furrycat.net>
Fri, 9 Nov 2018 08:35:02 +0000
(08:35 +0000)
committer
CMDR furrycat
<elite@furrycat.net>
Fri, 9 Nov 2018 08:35:02 +0000
(08:35 +0000)
plugin/heading/heading.py
patch
|
blob
|
history
diff --git
a/plugin/heading/heading.py
b/plugin/heading/heading.py
index
d4fac92
..
ecbaddb
100644
(file)
--- a/
plugin/heading/heading.py
+++ b/
plugin/heading/heading.py
@@
-117,4
+117,4
@@
class Heading(object):
x = (math.cos(slat) * math.sin(elat)) - (math.sin(slat) * math.cos(elat) * math.cos(elong - slong));
y = math.sin(elong - slong) * math.cos(elat)
- return int(math.degrees(math.atan2(
x, y
)) % 360)
+ return int(math.degrees(math.atan2(
y, x
)) % 360)