armindoantunes / gh615

Automatically exported from code.google.com/p/gh615
0 stars 0 forks source link

Upload more then 3 waypoints fails #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a standard waypoint file with more then 3 entries (see below)
2. Upload the file with option "e"
3.

What is the expected output? What do you see instead?
See below for 3 waypoints and 4 waypoints

What version of the product are you using? On what operating system?
Version of my watch is 1.06
Upgraded the firmware to the latest version F-0TH-0N-0705171

Please provide any additional information below.
--- 3 Waypoints text ---
[{'latitude': '52.174810', 'altitude': 51, 'type': 1, 'longitude':
'6.834910', 'title': 'tst26 '}, {'latitude': '52.176740', 'altitude': 51,
'type': 1, 'longitude': '6.830130', 'title': 'tst27 '}, {'latitude':
'52.176670', 'altitude': 51, 'type': 1, 'longitude': '6.829970', 'title':
'tst28a'}]
--- 4 Waypoints txt ---
[{'latitude': '52.223657', 'altitude': 51, 'type': 222, 'longitude':
'6.905303', 'title': 'test  '}, {'latitude': '52.174810', 'altitude': 51,
'type': 1, 'longitude': '6.834910', 'title': 'tst26 '}, {'latitude':
'52.176740', 'altitude': 51, 'type': 1, 'longitude': '6.830130', 'title':
'tst27 '}, {'latitude': '52.176670', 'altitude': 51, 'type': 1,
'longitude': '6.829970', 'title': 'tst28a'}]

--- 3 Waypoints output ---
Upload Waypoints
DEBUG importWaypoints(378): entered
INFO importWaypoints(385): Successfully read waypoints 3
DEBUG setWaypoints(389): entered
DEBUG connectSerial(44): serial port connection on com6
DEBUG writeSerial(61): writing to serialport:
0200397600037473743236200001003303
1C1FDA00684ADE74737432372000010033031C27640068383274737432386100010033031C271E00
68379294
DEBUG writeSerial(64): waiting at serialport: 6
INFO setWaypoints(429): waypoints updated: 3
Imported Waypoints 3

--- 4 Waypoints output ---
Upload Waypoints
DEBUG importWaypoints(378): entered
INFO importWaypoints(385): Successfully read waypoints 4
DEBUG setWaypoints(389): entered
DEBUG connectSerial(44): serial port connection on com6
DEBUG writeSerial(61): writing to serialport:
02005176000474657374202000DE003303
1CDEA900695DD774737432362000010033031C1FDA00684ADE74737432372000010033031C276400
68383274737432386100010033031C271E006837928B
DEBUG writeSerial(64): waiting at serialport: 0
ERROR setWaypoints(432): error uploading waypoints
Imported Waypoints None

Original issue reported on code.google.com by P.T.Wolk...@gmail.com on 5 Aug 2007 at 12:10

GoogleCodeExporter commented 8 years ago
thats strange, but thanks for reporting.
I'll check it out as soon as I have received a new datacable from globalsat.

Original comment by spei...@gmail.com on 10 Aug 2007 at 9:24

GoogleCodeExporter commented 8 years ago

Original comment by spei...@gmail.com on 10 Aug 2007 at 9:24

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Changing line 64 from:
        results = gh615.setWaypoints(waypoints)   
Into:
        for i in range(0,len(waypoints)-3,3):
            results = gh615.setWaypoints(waypoints[0+i:3+i])
        results = gh615.setWaypoints(waypoints[3+i:len(waypoints)])   

Makes it possible to upload any number of waypoints. It works, but does not 
solve the
problem.

Original comment by P.T.Wolk...@gmail.com on 11 Aug 2007 at 10:12

GoogleCodeExporter commented 8 years ago
this has been fixed in build 98, sorry about that

Original comment by spei...@gmail.com on 4 Sep 2007 at 2:42