GPS devices communicate via a NMEA (National Marine Electronic Association) spec which costs about $250.
See also:
Suppliers:
Garmin GPS 16/17 to DB9 PC serial port
interconnect:
Here is a Javascript function to calculate distance in miles. Change the multiplier to equal the number of your preferred units in one mile. For example, to get results in feet the multiplier would be 5280.
function calcDist(lon1,lat1,lon2,lat2) {
var r = 3963.0;
var multiplier = 1;
return multiplier * r * Math.acos(Math.sin(lat1/57.2958) *
Math.sin(lat2/57.2958) + Math.cos(lat1/57.2958) *
Math.cos(lat2/57.2958) * Math.cos(lon2/57.2958 -
lon1/57.2958));
}:
See:
| file: /Techref/io/sensor/pos/gps.htm, 3KB, , updated: 2010/7/16 12:03, local time: 2012/2/10 05:01,
38.107.179.233:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/tecHREF/io/sensor/pos/gps.htm"> Global Positioning Systems</A> |
| Did you find what you needed? |
Robotics nuts!Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow! |
.