Comments (3)
Now i got my enviroment to compile navit. Setting ANDROID_HOME solved the error.
The high load is not a "logical" fail, but android GPS send position updates very often.
A new GPS position is delivered before the function route_set_position() complete on my hardware.
I will try to sort out GPS updates with no or with only minimal position change.
from navit.
https://developer.android.com/training/location/change-location-settings
You could configure Android to send updates only at a specified interval:
Update interval
setInterval() - This method sets the rate in milliseconds at which your app prefers to receive location updates. Note that the location updates may be somewhat faster or slower than this rate to optimize for battery usage, or there may be no updates at all (if the device has no connectivity, for example).
Fastest update interval
setFastestInterval() - This method sets the fastest rate in milliseconds at which your app can handle location updates. Unless your app benefits from receiving updates more quickly than the rate specified in setInterval(), you don't need to call this method.
from navit.
I tried to change a line in navit/android/src/org/navitproject/navit/NavitVehicle.java :
sLocationManager.requestLocationUpdates(mFastProvider, 0, 0 , sFastLocationListener);
and replaced 0, 0, with 1000, 1 (minimum 1 second, minimum 1 m between callbacks.
This did not help.
The question is whether this is a general problem at all or whether it is only due to the old hardware. Should I close this?
from navit.
Related Issues (20)
- Feature request: Support for objects from other applications.
- All works well expect for "Set As Destination" - it crashes Navit.
- With <navit imperial="1" in: ~/.navit/navit.xml, it still displays metric units. HOT 1
- Map Rendering Problems, background color, missing names. HOT 6
- Some settings changes do not stick HOT 14
- Planet Extractor Map Version HOT 2
- Saber ler o navit.log HOT 1
- do_draw:point count overflow errors HOT 1
- [Bug] Cannot skip interchange/exit names using TTS and samples HOT 2
- vehicle_file:vehicle_file_parsting:wrong checksum HOT 1
- error reading /home/user/.navit/navit.xml HOT 5
- error:navit:traffic_new:wrong type 'null' HOT 3
- Add to Taginfo Projects
- How to compile on Raspberry PiOS bookworm? HOT 10
- Maptool error HOT 2
- Need your help in cross compiling for arm. HOT 3
- Request help for development
- Adding an attribute to attr_def.h breaks lookup when entering destination HOT 2
- Navit.sh HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from navit.