Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Testi

Pages: [1] 2
1
Hey, just got my mail, immediately installed it and all seems to be working well. I'm in the office so I can't try out much, but it looks like during recording, you can't see the map - that would be a shame. Maybe once recording starting, we could be sent back to the map screen, with a small button that goes to the recording interface ? By default, I think I would want to both look at the map and record my movements at the same time.

2
Troubles & Questions / Audio feedback ?
« on: June 22, 2014, 17:44:22 »
Hello,

one of the only reasons why I still have Runkeeper installed and don't use Locus for everything is because Runkeeper can be set to periodically say things like speed, total distance, etc. Is there a way to get Locus to do that ? Runkeeper kinda sucks compared to locus so I'd rather use Locus for jogging too.

3
Nothing I could get to work so far. Will the validation need to happen on every start, or only the first start ? If it's just the once, maybe I could borrow some USB-Wifi-Stick or something of that sort to activate it.

ps.: I didn't even consider bluetooth, I'll have to look into that.

4
Hello,

I am a happy Locus Pro owner, and I have recently been given a slightly broken device that has no internet access (but I can put stuff on it by putting in an SD card). Free apps I can just download the apk of and move it to the device, but obviously not paid apps. Since this device would be perfect for vacations (big display, good GPS, not a huge loss if broken/stolen since it's so damaged) I would like to put my Locus Pro on it somehow if that is possible.

Is there a way ? Like I said I legit own Locus Pro.

5
Developers / Traccar, Open Source GPS tracking server
« on: March 29, 2014, 11:09:23 »
Hey good Locus people,

I saw this come up in an unrelated discussion:

http://www.traccar.org/

Looks perfect to be used with Locus Pro's Live Tracking function. Since it's open source it's probably trivial to add too.

Just thought you guys might find it interesting, not asking for anyone to do anything with it.

Have fun!

6
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 16, 2014, 12:28:57 »
Here you can see what it does, before:



As you can see, I only put a point at the start of Rotsiefweg and at the end, since it's very straight. But it's 500m long, so at my setting to beep if you get more than 100m from the track, it would beep in between.

Here's the 'after':


7
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 16, 2014, 01:09:07 »
Here are my results from some experimenting:

I can't use the navigation function, because I plan hiking trips on dirt trails and such that are not navigable, and even if they were, I just want to pick routes on the maps, not generate routes. When drawing with Locus, it also doesn't make intermediate points on its own.

So I wrote a short little Java program to take a .KML file and just add points in the middle of long lines. Maybe someone else might want something like that, so here goes:

Code: [Select]
package com.boringville.misc.pointadder;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.List;

import lombok.RequiredArgsConstructor;
import de.micromata.opengis.kml.v_2_2_0.Coordinate;
import de.micromata.opengis.kml.v_2_2_0.Document;
import de.micromata.opengis.kml.v_2_2_0.Feature;
import de.micromata.opengis.kml.v_2_2_0.Kml;
import de.micromata.opengis.kml.v_2_2_0.LineString;
import de.micromata.opengis.kml.v_2_2_0.Placemark;

public class PointAdder {
    @RequiredArgsConstructor
    private static class Distance {
        private final Coordinate first, last;

        /** Basically copied from http://stackoverflow.com/questions/837872 */
        public double calculate() {
            double dLat = Math.toRadians(last.getLatitude() - first.getLatitude());
            double dLng = Math.toRadians(last.getLongitude() - first.getLongitude());
            double a = Math.sin(dLat / 2) * Math.sin(dLat / 2)
                    + Math.cos(Math.toRadians(first.getLatitude()))
                    * Math.cos(Math.toRadians(last.getLatitude())) * Math.sin(dLng / 2)
                    * Math.sin(dLng / 2);
            double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
            return c;
        }
    }

    public static void main(String[] args) {
        double earthRadius = 6369628.75D;
        double maxDistance = Double.parseDouble(args[0]) / earthRadius;
        Kml kml = Kml.unmarshal(new File(args[1]));
        Document document = (Document) kml.getFeature();
        for (Feature feature : document.getFeature()) {
            if (!(feature instanceof Placemark)) {
                continue;
            }
            Placemark placemark = (Placemark) feature;
            LineString ls = (LineString) placemark.getGeometry();
            List<Coordinate> inCoords = ls.getCoordinates();
            List<Coordinate> outCoords = new ArrayList<Coordinate>();
            Coordinate lastPoint = null;
            for (Coordinate coordinate : inCoords) {
                if (lastPoint != null) {
                    double distance = new Distance(lastPoint, coordinate).calculate();

                    if (distance > maxDistance) {
                        double steps = Math.ceil(distance / maxDistance);
                        double stepLong = (coordinate.getLongitude() - lastPoint.getLongitude())
                                / steps;
                        double stepLat = (coordinate.getLatitude() - lastPoint.getLatitude())
                                / steps;
                        for (int i = 0; i < steps; i++) {
                            outCoords.add(new Coordinate(lastPoint.getLongitude() + stepLong * i,
                                    lastPoint.getLatitude() + stepLat * i));
                        }
                    }
                }
                lastPoint = coordinate;
                outCoords.add(coordinate);
            }
            ls.setCoordinates(outCoords);
        }
        try {
            kml.marshal(new File(args[2]));
        } catch (final FileNotFoundException e) {
            e.printStackTrace();
        }
    }
}

And here is the neccessary pom.xml if you want to build it without fiddling with class paths and libraries:

Code: [Select]
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.boringville.misc</groupId>
<artifactId>pointadder</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>pointadder</name>
<url>http://maven.apache.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>de.micromata.jak</groupId>
<artifactId>JavaAPIforKml</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.12.4</version>
</dependency>
</dependencies>
</project>

I don't really understand licenses but everyone is free to do whatever they want with the code as long as they don't try to hold me accountable for blowing up their computers ;)

Ooops almost forgot, you use it by doing "java PointAdder 50 in.kml out.kml" where in.kml is the Google Earth or whatever generated one and out.kml is the name of the resulting file. 50 is the maximum distance in meters that you want between two points.

8
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 15, 2014, 14:42:18 »
I have a powerful desktop computer and a gigantic monitor, so at home I tend to not use my phone for anything, but I will try a few different ways to do it tomorrow.

9
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 14, 2014, 18:55:49 »
Geez, I didn't mean to imply any fault on Locus' part or to start a fight!

My tracks don't have many points because it's planned routes I click together in Google Earth, but I'm sure I can find a way to make it generate intermediate points. Lots of sun in the forecast for Sunday, so I'll find out then!

10
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 13, 2014, 00:04:59 »
Very cleverly hidden! Thank you, that looks exactly like what I was hoping for! I would have never found that on my own lol. I will report back after trying it. What will happen if I set it to beep at 250m, and I am between 2 points that are 1000m apart ? Will it understand that I'm still close to the 'line' ?

11
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 12, 2014, 20:43:48 »
I tried it again today with the low point course I had and I got a single beep when I veered off course, and nothing after that. Also no way to configure that behaviour. If I somehow missed that beep, it could have taken forever for me to notice I wasn't on course anymore :(

12
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 11, 2014, 12:19:12 »
I will play around with that the next time I go for a hike. Those tracks you use, are they just 'corner points', like what you get from Google Earth, where for long straight parts there is no points in between ?

13
Troubles & Questions / Re: "You veered off the course" warning ?
« on: February 09, 2014, 12:38:04 »
I tried using the Guiding feature once, but it kept trying to guide me to the start of my track, no matter what I did, it wouldn't understand that I wanted to go forward.

14
Troubles & Questions / "You veered off the course" warning ?
« on: February 09, 2014, 12:22:05 »
Hello,

sometimes I import a course from Google Earth or similar and then follow it, like when I hike. Every now and then, I veer off the course while not looking, and then when I next check Locus like 20 minutes later and see I got lost, I have to go all the way back. Is there a way to make Locus ring a warning or whatever if you are more than x feet from a path or something like that ? Or what is the best way to follow a predetermined path without constantly looking at the map ?

15
Maps / Re: Locus Maps in Google Earth ?
« on: August 11, 2013, 13:06:33 »
Heh, it's weird, once your mind goes one direction, it's hard to see the forest among the trees. I didn't even consider just using any random web thing, because I was too focused on GE ;) Thanks for the tips, that's very helpful.

What I was hoping for was not to use the downloaded Locus maps, but something like this:

http://wiki.openstreetmap.org/wiki/OSM_ ... work_links

Basically, you just add a tiny kml to Google Earth, and it dynamically loads overlay tiles from another map provider. But judging from that, it seems to be a feature specific to OSM, and not something I could just do for the other Locus map providers.

ps.: Upon further reading, it seems that site provides quite a few map providers, though not all the ones Locus has, so now there are even more ways to plan my trips ;)

Pages: [1] 2