Skip to content

Commit

Permalink
Update lib, test: Fix unparsed eccentricity
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermsmeier committed Oct 26, 2016
1 parent f29cc19 commit 687ed3f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/tle.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ TLE.prototype = {

this.inclination = TLE.parseFloat( line.substring( 8, 17 ) )
this.ascension = TLE.parseFloat( line.substring( 17, 26 ) )
this.eccentricity = TLE.trim( line.substring( 26, 34 ) )
this.eccentricity = TLE.parseFloat( '0.' + line.substring( 26, 34 ) )
this.perigee = TLE.parseFloat( line.substring( 34, 43 ) )
this.anomaly = TLE.parseFloat( line.substring( 43, 52 ) )
this.motion = TLE.parseFloat( line.substring( 52, 64 ) )
Expand Down
2 changes: 1 addition & 1 deletion test/from-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe( 'TLE.fromJSON', function() {
esn: 292,
inclination: 51.6416,
ascension: 247.4627,
eccentricity: '0006703',
eccentricity: 0.0006703,
perigee: 130.536,
anomaly: 325.0288,
motion: 15.721253915,
Expand Down
2 changes: 1 addition & 1 deletion test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe( 'TLE.parse', function() {
esn: 292,
inclination: 51.6416,
ascension: 247.4627,
eccentricity: '0006703',
eccentricity: 0.0006703,
perigee: 130.536,
anomaly: 325.0288,
motion: 15.721253915,
Expand Down

0 comments on commit 687ed3f

Please sign in to comment.