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

No way to override heading when using external GPS via Bluetooth #313

Open
manthonyg opened this issue Dec 22, 2023 · 1 comment
Open

No way to override heading when using external GPS via Bluetooth #313

manthonyg opened this issue Dec 22, 2023 · 1 comment

Comments

@manthonyg
Copy link

Hi team,

I am using an external GPS and sending NMEA to ATAK via Bluetooth. The messages that matter in this case are RMC and GGA, which are made into respective packets and then combined to create a valid GPS CoT.

While the lat/lng, speed, and altitude are all represented correctly, including the fidelity of the signal (in my case "Estimated" as it is a dead reckoning system), the heading always defaults to the device's compass. That is to say, even if I am sending a NMEA with a course over ground of 150 degrees explicitly, ATAK will only show the marker with a heading of the onboard compass.

Looking into the code, it seems like there is a flag that could correct this- useOnlyGpsBearing

useOnlyGPSBearing = locationPrefs.getBoolean("useOnlyGPSBearing",

But it would appear that this is just set to false and there is no UI option to switch this flag. Am I correct in assuming that this is the missing piece that I would need? If so, are there any plans to allow for this preference to be set, or a workaround that you can suggest?

Thanks in advance

@bisgroves
Copy link

The logic maintains that gps is only used when the calculated speed is over
private final static double GPS_BEARING_SPEED = 0.44704 * 5; // 1.0mph * 5
as described in LocationMapComponent.

The following preference referenced in your post is only used by plugins or pushed via a datapackage and there is no user side mechanism to set it.

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

No branches or pull requests

2 participants