![]() |
Re: N900 + Google Latitude
ah, got it.
Thanks for your help and for the time you spend on this project. greetings rubberduck |
Re: N900 + Google Latitude
Quote:
ALL latitude clients I got to work on the n900 was unusable either because a) they used cell tower location only or b) they turned on the gps and kept it on constantly, even though I asked it to update every 10 minutes... Please solve this! /Z |
Re: N900 + Google Latitude
@MasterZap
the agps need about 15s in optimal condition to get your position in good condition (in a park) , in a poor condition (inside of a house/office) maybe never get yours position... then, the problem is when stop the gps... if i stop early the accuracy will be worst of the cell-tower. if i wait a lot of time the battery drain... i'm not sure what is a good method using gps without a battery drain... maybe using qt-mobile... but i'm not sure... tip: if you open another app using the gps ( nokia maps, location test, chat, etc ) the google latitute will get the gps position ( by design ) |
Re: N900 + Google Latitude
2 Attachment(s)
Quote:
By moving the gui out of the daemon to a separate file and using QCoreApplication instead of QApplication, I got a working daemon that only takes 2MB of RAM, including shared libraries. The updates are working as they should now, the program won't connect to internet and will update when connected. Also, I implemented some code to not update the location with a less accurate position, it considers the uncertainty of the new and of the previous positions. As a daemon, it is working really very well now, tough bigger update intervals are still missing. To reduce battery drain, might we could turn the gps off and turn it on only when we want a new position. Of course this aproach will only work if the update interval is big. About using cell tower, here where I am it's not possible to get a position with a better accuracy than 800 meters, and that's a lot. My girlfriend has an iPhone 4 and her positions are very precise, so I'm pretty sure the official Google updater uses the GPS. It would be nice if we could measure the battery drainage... I think we should split the app into 3 standalone binaries: a very lightweight daemon that only updates the position, a settings GUI witch can be run from the system settings but also from the daemon or the latitudeGUI (this already happens if the username is wrong) and the latitudeGUI witch is only a viewer and witch may run the daemon if it's not already running (to provide the updates) and the settings, to configure it. But that's your decision. I'm attaching a new deb, please have a try. As I mentioned, the gui won't work, it won't load at all, but the daemon is working really very well. Probably the changes I made to the code I was working on won't fit in the git anymore, will they? I'm a git newbie. How can I upload my changes? I'm attaching my current code here as well. |
Re: N900 + Google Latitude
Quote:
|
Re: N900 + Google Latitude
How about having some options on its positioning behaviour?
1) only use celltower info 2) use celltower + GPS it that happens to be on when updating 3) use GPS (activate it) option 3 could have another setting that specifies the amount of time to wait fot it to get a fix (example: 30 seconds or 1 minute), so the user can limit batt drain. Splitting daemon, settings and viewer sems like a splendid idea. The daemon should be as lightweight as possible. Thanks a lot for your work! |
Re: N900 + Google Latitude
@traysh make a branch in git..., no push the updates to the master branch
|
Re: N900 + Google Latitude
Quote:
Quote:
To include the config in "control panel" please not use the UI file... Quote:
|
Re: N900 + Google Latitude
Quote:
Quote:
Quote:
|
Re: N900 + Google Latitude
Quote:
|
| All times are GMT. The time now is 04:38. |
vBulletin® Version 3.8.8