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)

rotoflex 2010-11-12 22:46

[REQUEST] Map-less geolocator
 
In many areas, cell service has only slow data connections for my phone. In such areas, maps are slow due to connect and download speeds.

Could an application be created to:
1. Take a location fix from GPS & store it
2. Alternatively, allow copy/paste or manual entry of a GPS location
3. Display a directional pointer on the screen, showing the direction of the location & its distance from the present location

without having to establish a data connection?

Wikiwide 2010-11-15 12:00

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

Originally Posted by rotoflex (Post 871967)
In many areas, cell service has only slow data connections for my phone. In such areas, maps are slow due to connect and download speeds.

Could an application be created to:
1. Take a location fix from GPS & store it
2. Alternatively, allow copy/paste or manual entry of a GPS location
3. Display a directional pointer on the screen, showing the direction of the location & its distance from the present location

without having to establish a data connection?

I'm now trying to make such an application from scratch. As MADDE gives an error, I cannot build it on my computer and have to send it to auto-builder.

It's called:
qdialgps

0.0.1 isn't intended to work at all, it is designed to show the interface.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error from MADDE:

libQtDeclarative.so: undefined reference to `QScriptDeclarativeClass

I'm trying to use MADDE with PR1.2 fremantle target for building Qt 4.7 program using QML.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Extras assistant:
Build failed:

error: QApplication: No such file or directory

What does it mean? It says it installed libqt4-dev as build dependency, how can it have no QApplication in its default include directory?

Just brilliant. Sending the same files to builder again.

Failed again.

https://garage.maemo.org/builder/fre...log.FAILED.txt

Attaching tar.gz to this post.

Can somebody tell me what's the problem? I have never used QML before, but I have compiled a Qt application in this MADDE after PR1.3 without any problems.

TiagoTiago 2010-11-15 12:11

Re: [REQUEST] Map-less geolocator
 
I believe Mappero does work offline. Also you might wanna take a look at Advanced Geocaching Tool as well as GPXView

Wikiwide 2010-11-15 22:46

Re: [REQUEST] Map-less geolocator
 
Quote:

Originally Posted by TiagoTiago (Post 873941)
I believe Mappero does work offline. Also you might wanna take a look at Advanced Geocaching Tool as well as GPXView

Advanced Geocaching Tool:
GPS view - shows the distance and direction to the selected geocache.

Mappero and Modrana can show maps offline instead of downloading them online (or you can turn off the maps and see blank background with GPS marker on it). But I don't remember any of them showing direction to a selected point.

handaxe 2010-11-15 23:40

Re: [REQUEST] Map-less geolocator
 
Quote:

Originally Posted by Wikiwide (Post 874515)
...But I don't remember any of them showing direction to a selected point.

They don't and in IMO it is a distinct lack in the n900 GPS progs (ie. functions similar to those standard on hiking handheld GPS receivers.

Wikiwide 2010-11-16 12:01

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

Originally Posted by handaxe (Post 874559)
They don't and in IMO it is a distinct lack in the n900 GPS progs (ie. functions similar to those standard on hiking handheld GPS receivers.

Probably, ModRana will have it added, it's easier than offline routing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For now, continuing with simple coding example.
Installed Nokia Qt SDK in order to get MADDE with Qt 4.7 and PR1.3.
Compiled qdialgps version 0.0.1.
Interface works, thanks to QML.
But, signal emitted by QML seems to be not heard by C++ program.

rotoflex 2010-11-16 13:24

Re: [REQUEST] Map-less geolocator
 
Quote:

Originally Posted by Wikiwide (Post 874515)
Advanced Geocaching Tool:
GPS view - shows the distance and direction to the selected geocache.

That's pretty close to what I was thinking of.

But it's not adapted to quickly establishing present location for saving, &/or saving one or more "targets" for future location, like where you left your car, bike, boat, or the blue easter egg.

BabelO 2010-11-16 13:43

Re: [REQUEST] Map-less geolocator
 
Quote:

Originally Posted by rotoflex (Post 875011)
That's pretty close to what I was thinking of.

But it's not adapted to quickly establishing present location for saving, &/or saving one or more "targets" for future location, like where you left your car, bike, boat, or the blue easter egg.

I'll upload soon a new version of QLAndkarM that let you use OpenStreetmap.org and also keep map for offline use. Features are :

* Raster Map support ( Geotiff lonlat)
* OpenStreetMap.org
* Tracks
* Waypoints

Will add also position Search and Route mode from openrouteservices website.

Fabrice

Btw : Distance is shown from your current position to the position you point with finger on map and also Heading

Wikiwide 2010-11-17 03:17

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

Originally Posted by Wikiwide (Post 874935)
Quick reply...


Probably, ModRana will have it added, it's easier than offline routing.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For now, continuing with simple coding example.
Installed Nokia Qt SDK in order to get MADDE with Qt 4.7 and PR1.3.
Compiled qdialgps version 0.0.1.
Interface works, thanks to QML.
But, signal emitted by QML seems to be not heard by C++ program.

This version shows azimuth from your last known position to point (0;0).
It's updates itself with timer.
As the changes are most likely negligible, you will hardly be able to check it by eyes.
If you start from X Terminal (/opt/usr/bin/qdialgps), you can see its output.
It says:
No such signal QGeoPositionInfoSourceMaemo...
So it's hardly possible to update upon position change; timer is most likely the way to go, though it's most likely resource eater.

There is also now distance in meters.

Wikiwide 2010-11-17 11:45

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

Originally Posted by Wikiwide (Post 875721)
This version shows azimuth from your last known position to point (0;0).
It's updates itself with timer.
As the changes are most likely negligible, you will hardly be able to check it by eyes.
If you start from X Terminal (/opt/usr/bin/qdialgps), you can see its output.
It says:
No such signal QGeoPositionInfoSourceMaemo...
So it's hardly possible to update upon position change; timer is most likely the way to go, though it's most likely resource eater.

There is also now distance in meters.

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.

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