Skip to content

Commit

Permalink
Update gsv.go
Browse files Browse the repository at this point in the history
  • Loading branch information
saoron committed Oct 30, 2024
1 parent cfc545a commit 4825baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gsv.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type GSVInfo struct {
SVPRNNumber int64 // SV PRN number, pseudo-random noise or gold code
Elevation float64 // Elevation in degrees, 90 maximum
Azimuth float64 // Azimuth, degrees from true north, 000 to 359
SNR int64 // SNR, 00-99 dB (null when not tracking)
SNR float64 // SNR, 00-99 dB (null when not tracking)
}

// newGSV constructor
Expand All @@ -56,7 +56,7 @@ func newGSV(s BaseSentence) (Sentence, error) {
SVPRNNumber: p.Int64(3+i*4, "SV prn number"),
Elevation: p.Float64(4+i*4, "elevation"),
Azimuth: p.Float64(5+i*4, "azimuth"),
SNR: p.Int64(6+i*4, "SNR"),
SNR: p.Float64(6+i*4, "SNR"),
})
}
idxSID := (6 + (i-1)*4) + 1
Expand Down

0 comments on commit 4825baa

Please sign in to comment.