#4 Height in tracks - patch

open
nobody
None
5
2002-09-14
2002-09-14
David Yule
No

The current version (0.39) doesn't support download of
altitude in tracks (and misses the new_track flag for
devices which support height). I've had a look at the
code, and attach a patch for the file src/gps/getgpsinfo.c

The problem is that Garmin specify 2 different
datatypes of track point, and the current software only
supports the simpler version. From the specifcation at
http://www.garmin.com/support/commProtocol.html the
datatypes are D300_Trk_Point_Type & D301_Trk_Point_Type

My patch just checks the length of data that is
transmitted - and deduces which datatype it is from
this. Of course, the correct way to do it would be to
get the device to say what datatype it supports (via
A001 Protocol Capability), but this is simpler and does
the job :-)

Discussion

  • David Yule
    David Yule
    2002-09-14

    Diff to file src/gps/getgpsinfo.c

     
    Attachments