Skip to content

GSV sentence not handled correctly when there is only a single satellite present  #5

@njtromp

Description

@njtromp

The following sentence (which my Nokia LD-3W Bluetooth GPS dongle emitted today) results in a 'not enough tokens' error in the codes/GSV.js module.

$GPGSV,3,3,09,24,06,148,22*4D

According to this information http://www.gpsinformation.org/dale/nmea.htm#GSV there can be up to four satellites present in a GSV sentence. The above sentence only holds information for a single satellite. Which makes sense given the fact that there are 9 satellites and this is the third GSV sentence.
As far as I can tell the check done on line 9 of codes/GSV.js 'if(tokens.length < 13) {' should check for a minimum of 8 tokens. The current check assumes that there are at least two satellites 4 + 2x4 = 12 (plus a mysterious extra token??) tokens while there can be 4 +1x4 = 8 tokens when there is only one satellite.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions