|
 |
|
09-24-2006, 09:28 PM
|
#631
|
|
AMP Creator
Join Date: Jun 2006
Posts: 454
|
Hey.. Really good links, thank you
__________________
-
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
09-24-2006, 10:21 PM
|
#632
|
|
Newbie
Join Date: May 2005
Posts: 36
|
No problem. Hope they can help.
|
|
|
09-24-2006, 11:03 PM
|
#633
|
|
Constant Bitrate
Join Date: Apr 2006
Location: California
Posts: 191
|
Quote: Originally Posted by ckgreenman 
I personally like Roadnav. I used it about a year ago (version 0.09something) to drive from California to North Carolina. It had a hard time handling such a big route then (I haven't tried it lately) but that was a while ago. The biggest problem is the lack of coverage (US Only) but according to the latest news there should soon be support for OpenStreetMap.
The current version is 0.15 . I used it for a bit just for testing and I liked it a lot too, but the route planning is a bit weird. So like if you planned a trip using roadnav it will do the shortest in milege, but it might go through all kinds of residential zones or whatever when you really want to just take the highway. does that kinda make sense? Anyway if the guy prioritized highway/bigger road travel or something it would rock lol.
__________________
MacCar progress:
Planning:-----> [||||||||||||||||||||] 70%
Parts:---------> [||||||||||||||||||||] 0%
Construction:-> [||||||||||||||||||||] 0%
Car broken into... progress is basically zip...
|
|
|
09-25-2006, 12:20 AM
|
#634
|
|
AMP Creator
Join Date: Jun 2006
Posts: 454
|
Quote: Originally Posted by ckgreenman 
I think the answer to your question is that it depends on where you are. For example, at the equator (0 degrees Latitude) 1 degree of longitude is about 69 miles while at a latitude of 45 degrees (north or south), 1 degree of longitude is about 49 miles.
Hey man! I wanted to give it a quick shot before I went to bed. One of those links you gave me, it had JavaScript code for doing the conversions. So I just converted one of those to C, and ran a few tests and it seems to work great! Google Earth threw me for a loop for a while, since I'm not that familiar with this stuff yet. GE gives you a latitude of like 37.182432. I had to figure out that means 37 degrees, 18 minutes, 24.32 seconds. So then you just do the math to convert that into actual degrees (37/1 + 18/60 + 24.32/3600). That's the number the formula wants. Then at the end convert it to radians, and the formula gives you the distance in KM (which you can then convert to miles, etc..).. It works really nice..
So in the GPS program, for turns, I would just check if you are within like a half mile of the next way point (using that formula), and if so, display the turn message! Pretty cool!
__________________
-
Last edited by aychamo; 09-25-2006 at 01:33 AM..
|
|
|
09-25-2006, 12:24 AM
|
#635
|
|
Variable Bitrate
Join Date: Feb 2006
Posts: 263
|
once step closer  !!!!
|
|
|
09-25-2006, 12:52 AM
|
#636
|
|
Constant Bitrate
Join Date: Jun 2006
Posts: 126
|
aychamo is a genius, he should get some kind of apple developer award or something
|
|
|
09-25-2006, 02:02 AM
|
#637
|
|
Constant Bitrate
Join Date: Apr 2006
Location: California
Posts: 191
|
Quote: Originally Posted by JakobMetzger 
aychamo is a genius, he should get some kind of apple developer award or something
lmao, I'll second that  !
__________________
MacCar progress:
Planning:-----> [||||||||||||||||||||] 70%
Parts:---------> [||||||||||||||||||||] 0%
Construction:-> [||||||||||||||||||||] 0%
Car broken into... progress is basically zip...
|
|
|
09-25-2006, 02:12 AM
|
#638
|
|
Constant Bitrate
Join Date: Apr 2006
Location: California
Posts: 191
|
hmm, well concerning the fact that GE cannot re-calculate directions if you make a wrong turn: what if you made a program/script/code that would detect if you passed the turn (using the same thing your using for detecting wether the vehicle is close to a turn)? Then, if you passed the waypoint AMP would tell GE to recalculate directions to the same location from your current lat/long. I have no idea if that is even possible because of what you were saying about GE not being very programable from the outside. Then there is the issue with not having an internet connection. Plus it's vague and completely unhelpful as to how to do it  lol. Anyway, just tossing it out into the wind.....
__________________
MacCar progress:
Planning:-----> [||||||||||||||||||||] 70%
Parts:---------> [||||||||||||||||||||] 0%
Construction:-> [||||||||||||||||||||] 0%
Car broken into... progress is basically zip...
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
09-25-2006, 08:38 AM
|
#639
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,099
|
It might be possible if you had a net connection, but I don't think it will recalc without being connected.
|
|
|
09-26-2006, 02:51 PM
|
#640
|
|
Newbie
Join Date: Sep 2006
Posts: 14
|
This is a repeat of whats in the wishlist but i thought this thread might be a more fitting place......
If anyone is interesting in picking up the apple remote integration. Here is some Cocoa code and example program to get you started.
http://www.martinkahr.com/source-code/
Its like the 2nd or 3rd section down on his blog titled "Apple Remote Controller Wrapper Class"
|
|
|
09-28-2006, 10:07 AM
|
#641
|
|
Newbie
Join Date: Sep 2006
Posts: 7
|
Hot damn, this thing looks awesome. It'll be awhile before I buy a car that I could install it into, but I would love to get involved in this project. I'm no coder, but I do web and graphic design so I could help with the interface if there's any interest in that.
|
|
|
09-30-2006, 10:52 PM
|
#642
|
|
Newbie
Join Date: May 2005
Posts: 36
|
Quote: Originally Posted by aychamo 
Hey man! I wanted to give it a quick shot before I went to bed. One of those links you gave me, it had JavaScript code for doing the conversions. So I just converted one of those to C, and ran a few tests and it seems to work great!
Awesome. Glad those were useful. It sounds like you're having to do a lot of conversions though. It should be possible to change the formula so that you don't ave to do as many conversions (like km to miles, decimal degrees to DMS etc.) One thing you might look at (for a possible future addition) is to make the units of measure selectable as an option. This would also make the GPS app more friendly to countries that actually use km/hr.
Just another thought.
|
|
|
09-30-2006, 11:32 PM
|
#643
|
|
AMP Creator
Join Date: Jun 2006
Posts: 454
|
Quote: Originally Posted by ckgreenman 
Awesome. Glad those were useful. It sounds like you're having to do a lot of conversions though. It should be possible to change the formula so that you don't ave to do as many conversions (like km to miles, decimal degrees to DMS etc.) One thing you might look at (for a possible future addition) is to make the units of measure selectable as an option. This would also make the GPS app more friendly to countries that actually use km/hr.
Just another thought.
Hey there
The conversions I meant are unit (well, in terms of KM/miles) agnostic. I've already made it an option to use the metric system or not. The converting from DMS to radians took a few minutes to figure out, but kilometers to miles and back is just multiplication!
BTW saw the movie "Invincible" tonight.. Good!
Aychamo
__________________
-
|
|
|
10-01-2006, 10:39 AM
|
#644
|
|
Admin. Don't bug or I'll byte.
Join Date: Sep 2004
Location: Corning, NY
Posts: 6,099
|
Doesn't gpsdX simply send you the units you ask for in response to a query of it? I only looked at it briefly, so I guess it may not, but I thought that was one of the advantages of it.
|
|
|
10-01-2006, 12:09 PM
|
#645
|
|
AMP Creator
Join Date: Jun 2006
Posts: 454
|
Bugbyte, I think you are thinking about the header file for gps.h which includes a bunch of constants for converting between different scalar lengths. gpsd gives you the long/lat as, for example, -100.090807 which you have to do a small amount of math on to get to degrees, minutes, seconds. The only time units (miles, km) come into play is when you are calculating a *distance* between two points. The formula I use defaults to KM, which are easily converted to miles.
... don't worry guys  I already have that handled.
__________________
-
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:26 AM.
| |