Go Back  Bike Forums > Bike Forums > General Cycling Discussion
Reload this Page >

CueNav android app

Search
Notices
General Cycling Discussion Have a cycling related question or comment that doesn't fit in one of the other specialty forums? Drop on in and post in here! When possible, please select the forum above that most fits your post!

CueNav android app

Thread Tools
 
Search this Thread
 
Old 09-13-12, 08:44 PM
  #1  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
CueNav android app

I've been working on an app called Sag Wagon which is going to have to wait a bit because I keep getting requests to redo my turn by turn app first before I do CueNav. As such, I started working on it a couple days ago.

It's not pretty but here's what it does right now:
1. Downloads routes from a web URL.
2. Saves preferences so you don't have to refill things later.
3. Saves the route file to local storage (So no network connection is needed when you're on a ride).
4. Populates a list of the file names so you can select whichever you want.
5. Parses GPX (and in a moment TCX) format files.
1. Put parsed file into temporary sqlite database (so I can do some fancy searches for route info incase you don't start exactly on the first cue.)
2. Display cues to a List that gets automatically scrolled to the one you're on currently.
3. Text to Speech ("TTS") for the Cue directions

To do:
2. Finish the auto scrolling by updating the ListView control.
4. Finish the checking of distance to next location & playing TTS turn info.
5. Play multiple directions steps if the the next 2 turns are within 100' of each other.
6. Adjust when to play TTS directions based on speed.*in progress*

Attached Images
File Type: png
cuenav-main.png (18.2 KB, 11 views)
File Type: png
cuenav-selectroute.png (23.1 KB, 11 views)

Last edited by iconicflux; 09-26-12 at 07:06 AM.
iconicflux is offline  
Old 09-18-12, 08:21 PM
  #2  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Wow! I thought I had the GPX parsing worked out but I was SOOO wrong. It now accurately parses Garmin gpx files. I'll do TCX after I get some other stuff working.
iconicflux is offline  
Old 09-18-12, 08:40 PM
  #3  
Senior Member
 
downtube42's Avatar
 
Join Date: Oct 2008
Location: Portland, OR
Posts: 3,843

Bikes: Trek Domane SL6 Gen 3, Soma Fog Cutter, Focus Mares AL, Detroit Bikes Sparrow FG, Volae Team, Nimbus MUni

Mentioned: 11 Post(s)
Tagged: 0 Thread(s)
Quoted: 896 Post(s)
Liked 2,065 Times in 1,081 Posts
Can I get in an early feature request? Extreme power-save mode, for ultracyclists. Or actually I could put it in terms of a requirement: able to run for over 40 hours without a recharge. For those 1200k brevets: 90 hours of runtime.

Obviously you have to turn off the display and all wireless. Can you turn the GPS sample rate down to save battery? What about turning GPS off entirely if the next turn isn't for a mile or more?

It might even be possible to make it a semi-manual thing... let me hit a button when I want to hear the next turn or hit a button when I want to check my location. Dunno, just thinking out loud.
downtube42 is offline  
Old 09-18-12, 10:16 PM
  #4  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Downtube,

I've already written a service that runs in the background that does slow down GPS updates based on when turns are, speed, time, and estimated time until the next turn. Next is figuring out if I can somehow get the app functional (for replaying turn info if needed) without using the screen. My goal is to have the screen remain off (configurable of course) and I think I've figured out how to do that for most/all phones.

To get 40 hours out of it you'd have to shut down the gsm and wifi radios. Even then, powering up GPS once every 3-5 minutes, 10-30 seconds for a lock (it's around 10 if you pass it the info from the last satellites used) uses power I just don't know how much yet. Without gsm you'd lose A-GPS but it would still be pretty accurate although you could turn on gsm for a small bit too. The running it with the screen off may also be required to get that much time out of it.

I have multiple android devices so I'll certainly try to squeeze as much as is possible but 40's a lot to ask for when you're using GPS. I suppose we'll only know when I start testing it and the extrapolate what it would likely be.

I want this app to have ultra endurance because I'd like to use it on tours and an upcoming trans-america ride.
iconicflux is offline  
Old 09-19-12, 11:00 AM
  #5  
Senior Member
 
downtube42's Avatar
 
Join Date: Oct 2008
Location: Portland, OR
Posts: 3,843

Bikes: Trek Domane SL6 Gen 3, Soma Fog Cutter, Focus Mares AL, Detroit Bikes Sparrow FG, Volae Team, Nimbus MUni

Mentioned: 11 Post(s)
Tagged: 0 Thread(s)
Quoted: 896 Post(s)
Liked 2,065 Times in 1,081 Posts
Glad to see you're thinking about it. I think extreme extended life could be what sets your app apart.
downtube42 is offline  
Old 09-19-12, 12:43 PM
  #6  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
downtube: that and audio turn by turn navigation for bicycles. I've yet to find an app that does that actually based on the route files you give it. Too often you give it the exact route you want and the other app is like, "I know a better way with lots of traffic! Let's get buzzed!"

There's one that's not too far from being almost useable but it's car oriented and doesn't work well.
iconicflux is offline  
Old 09-19-12, 01:59 PM
  #7  
Senior Member
 
Notso_fastLane's Avatar
 
Join Date: Dec 2011
Location: Layton, UT
Posts: 1,606

Bikes: 2011 Bent TW Elegance 2014 Carbon Strada Velomobile

Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
Quoted: 626 Post(s)
Liked 701 Times in 418 Posts
If you're doing brevets that extreme, have you considered hanging/mounting a small solar cell (I've got one about the size of my iPhone) for supplemental power?
I like the idea of your app. Will it work on iPhone?
Notso_fastLane is offline  
Old 09-19-12, 06:22 PM
  #8  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
Notso - I'm writing it first for Android and then I'll do an iphone native version too. I already have XCode and the full dev environment for IOS stuff. (I do a lot of work with it.)

The nice thing is that the iphone native version will be mostly implementing the same algorithms in obj-c instead of java.
iconicflux is offline  
Old 09-21-12, 06:52 AM
  #9  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts


I've been working on some code to make the database and downloading less prone to failure. (Noticed a problem when I moved over to a real phone.)

It now correctly downloads gpx files, saves them to external storage, then allows you to select from a list of routes by name.

When selected, it loads that route into a temporary database and then displays details about it on the main screen so you know it's ready and that it's the one you meant to use.

The picture above was taken off my phone this morning...
Attached Images
iconicflux is offline  
Old 09-21-12, 01:41 PM
  #10  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
If anyone wants to take it on themselves to find some free navigation icons for this that'd be cool. I may see if I can find a car based one that's open source to take them from.
iconicflux is offline  
Old 09-21-12, 10:20 PM
  #11  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
I got the app displaying the cue of directions now. It uses a custom SimpleCursorAdapter to place the turn arrow image and the turn instructions onto the list. What you can't see is that there are also 2 hidden items. Each line has Lat & Lon associated with it also so that I can easily set a proximity alert for the corners.

I'm ALMOST to where I'll be testing the app on the bicycle.. WOO WOO!
Unfortunately.. a medical issue may keep me off the bike for another week so i may have to drive at first.

iconicflux is offline  
Old 09-22-12, 08:48 AM
  #12  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
So I think I figured out why other app makers aren't doing navigation from proximity alerts. It turns out that when the screen is off it slows down checks for proximity alerts to only once every 4 minutes. That's obviously not the greatest.

Fortunately, I have a way around this which will actually be easier in the long run. I'll be calculating the distance to the next lat/lon point myself and then using that.

Now I just have to figure out how to do callbacks so when one fires it can callback from the location service to the startroute activity and update the route.
iconicflux is offline  
Old 09-26-12, 07:11 AM
  #13  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
I put together a sweet GPS library with a couple of modifications that now allows my app to get GPS via passive or active depending on what is needed. This means that if another app gets a GPS update, my app will use the location the other app has and if no update has been seen within a set amount of time we'll actively update. This significantly cuts down on the power usage.

It now is calculating the number of seconds till the next turn. This will allow me to do the voice navigation based on when the next turn is so that cyclists have time to make the turns. (Right now if it doesn't know speed it's defaulting to 10mph. I hope to find a way to get the speed from gps so we always have speed but right now I don't have that.)

Anyone out there want to be an alpha tester for me?
iconicflux is offline  
Old 10-09-12, 05:35 PM
  #14  
Fredly
Thread Starter
 
Join Date: Jun 2010
Posts: 477

Bikes: Surly Long Haul Trucker w/ SRAM Rival, & 36H 38's, Late 70's Santana Tandem w/ Double Diamond frame

Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 1 Post(s)
Likes: 0
Liked 0 Times in 0 Posts
For those of you that are interested.. I started a new thread about it in the Road Cycling forum and I've been giving people some early alpha copies of the app so I can get some help testing it and working the bugs out.

https://www.bikeforums.net/showthread...s-Some-Testers
iconicflux is offline  
Old 10-10-12, 09:30 AM
  #15  
Senior Member
 
Notso_fastLane's Avatar
 
Join Date: Dec 2011
Location: Layton, UT
Posts: 1,606

Bikes: 2011 Bent TW Elegance 2014 Carbon Strada Velomobile

Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
Quoted: 626 Post(s)
Liked 701 Times in 418 Posts
I would, but I have an iPhone.
Notso_fastLane is offline  
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
gohabsgo
Electronics, Lighting, & Gadgets
18
05-20-16 12:57 PM
smurray
Electronics, Lighting, & Gadgets
2
10-30-13 10:16 AM
iconicflux
Road Cycling
23
11-02-12 06:00 AM
iconicflux
General Cycling Discussion
31
05-30-12 01:40 PM
garethzbarker
Touring
3
05-04-12 09:33 PM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.