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

Bluetooth GNSS doesn't report bearing #6

Open
pyrog opened this issue Jan 25, 2022 · 3 comments
Open

Bluetooth GNSS doesn't report bearing #6

pyrog opened this issue Jan 25, 2022 · 3 comments

Comments

@pyrog
Copy link

pyrog commented Jan 25, 2022

I use Osmand app and when mock location is active, Osmand always display the map with north up.

supportsBearing is false so I guess that even if setBearing is called, the apps don't get any bearing ?

See osmandapp/OsmAnd#13629

locationManager.addTestProvider(LocationManager.GPS_PROVIDER,
/*boolean requiresNetwork*/ false,
/*boolean requiresSatellite*/ true,
/*boolean requiresCell*/ false,
/*boolean hasMonetaryCost*/ false,
/*boolean supportsAltitude*/ true,
/*boolean supportsSpeed*/ true,
/*boolean supportsBearing */ false,
Criteria.POWER_LOW,
Criteria.ACCURACY_MEDIUM);

if (!Double.isNaN(bearing))
newLocation.setBearing(bearing);
else {
//Log.d(TAG, "bearing is nan so not setting in newlocation");
}

PS: Osmand also get 0 satellites

Capture d’écran 2022-01-25 à 20 41 41

@pyrog
Copy link
Author

pyrog commented Jan 25, 2022

Tested with Lefebure NTRIP client: no issue.

Left: mock location

@ykasidit
Copy link
Owner

ykasidit commented Jan 26, 2022 via email

@ykasidit
Copy link
Owner

ykasidit commented Feb 4, 2022

Hello, I still dont have a device with me to try now, pls try below release and see if it works or not (pls walk/drive a bit too)
https://github.com/ykasidit/bluetooth_gnss/releases/tag/v1.0.39

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