Code covered by the BSD License
-
AbortTransfer(gps)
Tell the GPS to stop sending data
-
AnalyzeTracks(tracks)
ANALYZETRACKS Analyze GPS track log data, display charts
-
CloseGPS(gps)
CLOSEGPS Close a GPS device
-
ComputeChecksum(id, data, typ...
Compute the 2s complement of the sum of the bytes sent:
-
ComputeTrackStats(track)
COMPUTETRACKSTATS Compute track log statistics
-
Constants
This M-file defines global constants for the numeric values in
-
DisplayTrack(port)
DISPLAYTRACK Display track log data from GPS on the given serial port
-
ExpectedDataError(wanted, got...
-
OpenGPS(port)
catch
-
PlotTrack(track)
-
ReadData(gps, id, count, type...
ReadData Read formatted data from the GPS, managing DLE stuffing
-
ReadPacket(gps, type)
READPACKET Read a single packet from the device
-
ReadPacketHeader(gps);
-
ReadPacketTerminator(gps)
ReadPacketTerminator Read the three byte sequence terminating a packet
-
ReadProductDataType(gps)
ReadProductDataType Read product id, version number and descriptive text
-
ReadProtocols(gps)
READPROTOCOLS Read the Protocol Capability Protocol data from the GPS
-
ReadRoutes(gps)
READROUTES Read all the route data from the GPS
-
ReadTracks(gps)
ReadTracks Read all the track data from the GPS
-
SendBeginPacket(gps, count)
SENDBEGINPACKET Send the standard begin command packet
-
SendEndPacket(gps, cmd)
SENDENDPACKET Send the standard ending packet
-
WritePacket(gps, id, data)
-
WritePacket(gps, id, data, ty...
WritePacket Write the a packet with the given id and data
-
WritePacketHeader(gps, id, sz...
-
WritePacketTerminator(gps, id...
WRITEPACKETTERMINATOR Send the two byte packet terminator: (DLE, ETX)
-
sizeof(type)
SIZEOF Number of bytes in a given precision specification
-
View all files
Serial Object GPS Example Code
by Peter Webb
01 Apr 2003
(Updated 17 Nov 2010)
Read tracklog data from Garmin eTrex GPS devices.
|
Watch this File
|
| File Information |
| Description |
This file contains the example code for the May 2003 News and Notes article "Importing Data via the Serial Object in MATLAB". The included M-code will read track log data from a Garmin eTrex GPS (Global Positioning Satellite) device and produce an analysis and visualization of that data. See the readme file (and the News and Notes article, posted on the MathWorks web site) for further details. |
| MATLAB release |
MATLAB 6.5 (R13)
|
| Other requirements |
Other than MATLAB 6.5, with Java enabled, to fully exercise the example, you need two pieces of hardware: a COM port and a Garmin eTrex GPS device. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (12) |
| 21 Jul 2003 |
Mike Roberts
|
|
|
| 22 Jul 2003 |
Mike Roberts
|
|
|
| 23 Jan 2004 |
enes koytak
|
|
|
| 27 Mar 2004 |
Abdul Nasser
|
|
|
| 01 Jul 2004 |
carlos rodrigues
|
|
|
| 24 Mar 2005 |
Walter Allensworth
|
|
|
| 01 Jul 2005 |
vimal patel
|
|
|
| 15 Dec 2005 |
Alon Alfa
|
|
|
| 05 Jan 2007 |
Steven Kolak
|
|
|
| 14 Mar 2007 |
Olivier Progin
|
|
|
| 12 Apr 2007 |
houssam SASSINE
|
|
|
| 02 Nov 2007 |
mie wryant
|
|
|
| Updates |
| 17 Nov 2010 |
Added BSD license. |
|
Contact us at files@mathworks.com