maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [REQUEST] Map-less geolocator (https://talk.maemo.org/showthread.php?t=65541)

Wikiwide 2010-11-18 01:52

Re: [REQUEST] Map-less geolocator
 
Quote:

Originally Posted by Wikiwide (Post 875987)
Now usable!
Takes coordinate at launch and then always shows direction and distance to it, updating continuously.
EDIT: it doesn't start GPS chip by itself. If you have OSMapper, Modrana, Mappero running in the background - great, they have already turned GPS on. Otherwise, the coordinate will always remain the same.
I will need to find out how to request turning the GPS on in Qt, without low-level Hildon-specific tricks.

Added timer start/stop (timer eats up to 18% CPU; and closing/opening application would erase the coordinate from memory); allows to conserve the battery whilst preserving the goal coordinate.
Added option to set current coordinate as goal, so that you wouldn't need to restart application to do it.
EDIT: Clarification: the file isn't attached because it was built by auto-builder.
http://maemo.org/packages/view/qdialgps/
Though it takes some time to move it to extras-devel repository from builder queue.
The package isn't polished, the description is absent, but it should function.
EDIT: Package imported and working.
EDIT: The package 0.0.1 worked yesterday brilliantly. Today, after some apt-get update/remove/autoremove/clean, the same exact package DOESN'T work! What is going on?

Wikiwide 2010-11-20 05:45

Re: [REQUEST] Map-less geolocator
 
1 Attachment(s)
Quote:

Originally Posted by Wikiwide (Post 876672)
Added timer start/stop (timer eats up to 18% CPU; and closing/opening application would erase the coordinate from memory); allows to conserve the battery whilst preserving the goal coordinate.
Added option to set current coordinate as goal, so that you wouldn't need to restart application to do it.
EDIT: Clarification: the file isn't attached because it was built by auto-builder.
http://maemo.org/packages/view/qdialgps/
Though it takes some time to move it to extras-devel repository from builder queue.
The package isn't polished, the description is absent, but it should function.
EDIT: Package imported and working.
EDIT: The package 0.0.1 worked yesterday brilliantly. Today, after some apt-get update/remove/autoremove/clean, the same exact package DOESN'T work! What is going on?

I know that it's quite low-level, but I decided to depend on liblocation0. I'm not going to wait for Qt Mobility 1.1 to be introduced to Maemo to make use of their PositionSource element. So here, attached, is deb of version 0.0.2, which uses timer, which can be stopped/started, allows to re-goal (set current coordinate as goal), and shows latitude, longitude and altitude of goal. The needle is red (non-connected state) when there are other earlier-started GPS-using applications in background, but nevertheless it works and doesn't conflict with them.

The application continues to use GPS when you stop timer. Stopping timer just stops display updates, without losing GPS lock.

The application has segmentation fault on close (doesn't matter for end-user); I would appreciate help with the code, destructors and all.

EDIT: The update should appear soon at:
http://maemo.org/packages/view/qdialgps/

handaxe 2010-11-20 08:12

Re: [REQUEST] Map-less geolocator
 
Hi WW,
It segfaults on startup for me:
Code:

constructor started
constructor ended
connected?
Segmentation fault

tx

Wikiwide 2010-11-20 11:49

Re: [REQUEST] Map-less geolocator
 
1 Attachment(s)
Quote:

Originally Posted by handaxe (Post 878592)
Hi WW,
It segfaults on startup for me:
Code:

constructor started
constructor ended
connected?
Segmentation fault

tx

Yes, I just did apt-get update/upgrade through USB, and qdialgps from repository does the same to me. However, when I reinstalled it from deb, it gives no segmentation fault at start. So try from deb.

The problem may come from the fact that headers of Qt, glib, etc don't know where to look for each other, so I have to either create symlinks (as I do in my MADDE) or include /usr/lib/glib-2.0/include /usr/include/glib-.0 /usr/include/QtCore and what-not (as I tried to, too).

It seems that the difference between MADDE and builder's scratchbox was such that builder didn't give an error, but the binary gives segmentation fault.

EDIT: Attaching the same file as in previous post.

Thanks for encouragement.

Wikiwide 2010-11-24 03:24

Re: [REQUEST] Map-less geolocator
 
1 Attachment(s)
Quote:

Originally Posted by Wikiwide (Post 878687)
Yes, I just did apt-get update/upgrade through USB, and qdialgps from repository does the same to me. However, when I reinstalled it from deb, it gives no segmentation fault at start. So try from deb.

The problem may come from the fact that headers of Qt, glib, etc don't know where to look for each other, so I have to either create symlinks (as I do in my MADDE) or include /usr/lib/glib-2.0/include /usr/include/glib-.0 /usr/include/QtCore and what-not (as I tried to, too).

It seems that the difference between MADDE and builder's scratchbox was such that builder didn't give an error, but the binary gives segmentation fault.

EDIT: Attaching the same file as in previous post.

Thanks for encouragement.

Here is a new version.
No timer.
GPS turns on when you open application and off when you close application.
Goal altitude, latitude and longitude are displayed.
Distance and relative altitude (goal altitude minus current altitude) are displayed nearby the dial.
Still segmentation fault at close... Where does it come from?

handaxe 2010-11-25 01:50

Re: [REQUEST] Map-less geolocator
 
Hi,

I don't get the lat long display in the top goal area.

BTW, this works rather nicely as a way of monitoring how the position fix "wanders" due to sat obstruction, atmospheric effects and multi-path. Just sit still and watch the read outs...

Thanks,

HA

Wikiwide 2010-11-25 03:24

Re: [REQUEST] Map-less geolocator
 
Quote:

Originally Posted by handaxe (Post 882586)
Hi,

I don't get the lat long display in the top goal area.

BTW, this works rather nicely as a way of monitoring how the position fix "wanders" due to sat obstruction, atmospheric effects and multi-path. Just sit still and watch the read outs...

Thanks,

HA

Click/tap the top goal area: it should toggle between "Goal" and coordinates.
If not, see whether there are any errors in X Terminal.
/opt/usr/bin/qdialgps

Wikiwide 2010-11-25 06:26

Re: [REQUEST] Map-less geolocator
 
1 Attachment(s)
Quick reply...

New version.
Basic POI interface: add with the button to the list, select from the list with click/tap, delete ('D'), set as goal ('S').
Unfortunately, the POI cannot be saved. Closing the application erases them. I don't know how to get inner contents of the list element (similar to innerHTML in HTML). I can and do create new elements with given parent; the elements have their own personal destructors built-in for deleting from the list; but I don't know how to save contents of the list.
Still Segmentation fault at close.
Don't be surprised if it is a power hog.

handaxe 2010-11-25 08:32

Re: [REQUEST] Map-less geolocator
 
ok will try new version. Here is error of old:
"file:///opt/usr/bin/qtdialgps/ui.qml:28: Unable to assign [undefined] to QString cz
file:///opt/usr/bin/qtdialgps/ui.qml:27: Unable to assign [undefined] to QString cy
file:///opt/usr/bin/qtdialgps/ui.qml:26: Unable to assign [undefined] to QString cx"

handaxe 2010-11-26 22:38

Re: [REQUEST] Map-less geolocator
 
A small problem with screen organisation - font sizes etc, resulting in overlaps. Remarkably effective though. And as I mentioned before, a great visual tool with which to teach practical GPS....

tnx,


All times are GMT. The time now is 19:57.

vBulletin® Version 3.8.8