Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

Direction seems to be inverted #92

Open
jwels opened this issue Jan 23, 2021 · 1 comment
Open

Direction seems to be inverted #92

jwels opened this issue Jan 23, 2021 · 1 comment

Comments

@jwels
Copy link

jwels commented Jan 23, 2021

Hey, thanks for this great plugin. So I noticed that the direction displayed on the map seems to be inverted. When searching for an issue I found a closed one talking about the exact same problem here. I tried the fix that @javi11 proposed in that issue locally and it looks like its working fine. Does this issue only exist for me due to configuration or should the previous fix be reintegrated? Thanks!

Current implementation of angle:
angle: _direction / 180 * math.pi,

Implementation working for me by @javi11:
angle: (((_direction * -1) ?? 0) * (math.pi / 180) * -1) + 160,

@igaurab
Copy link
Owner

igaurab commented Jan 27, 2021

I thought we had fixed that issue, but looks like the source code has not changed , might have been some merge conflicts. Thank you for pointing it out. Yes, the implementation by @javi11 worked for me too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants