diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5490e..ae2d678 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## Changelog +### 2.0.2 (2018-04-16) + +- [Wrong predictions for Molniya 3-47 orbits](https://github.com/shashwatak/satellite-js/issues/43) are fixed. Special +thanks to [@nhamer](https://github.com/nhamer). + ### 2.0.1 (2018-03-01) - `sgp4` function's call result is used in `sgp4init`. diff --git a/README.md b/README.md index cbe8231..0403319 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ Special thanks to all contributors for improving usability and bug fixes :) - [bakercp (Christopher Baker)](https://github.com/bakercp) - [drom (Aliaksei Chapyzhenka)](https://github.com/drom) - [PeterDaveHello (Peter Dave Hello)](https://github.com/PeterDaveHello) +- [nhamer](https://github.com/nhamer) - [owntheweb](https://github.com/owntheweb) - [Zigone](https://github.com/Zigone) diff --git a/commands/add-copyright.js b/commands/add-copyright.js index d77067c..cd75109 100644 --- a/commands/add-copyright.js +++ b/commands/add-copyright.js @@ -3,9 +3,11 @@ import fs from 'fs'; import glob from 'glob'; // eslint-disable-line import prependFile from 'prepend-file'; // eslint-disable-line -const lines = fs.readFileSync('copyright.txt', { +import packageJson from '../package.json'; + +const lines = fs.readFileSync('copyright-template.txt', { encoding: 'utf8', -}).split('\n'); +}).replace('{version}', packageJson.version).split('\n'); const args = process.argv.slice(2); const pattern = args[0]; diff --git a/copyright.txt b/copyright-template.txt similarity index 79% rename from copyright.txt rename to copyright-template.txt index d2ab46c..db90fa0 100644 --- a/copyright.txt +++ b/copyright-template.txt @@ -1,4 +1,4 @@ -satellite-js v2.0.0 +satellite-js v{version} (c) 2013 Shashwat Kandadai and UCSC https://github.com/shashwatak/satellite-js License: MIT \ No newline at end of file diff --git a/package.json b/package.json index 13e95e4..bd2a3a4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "satellite.js", - "version": "2.0.1", + "version": "2.0.2", "description": "SGP4/SDP4 calculation library", "main": "lib/index.js", "jsnext:main": "dist/satellite.es.js", diff --git a/src/propagation/dspace.js b/src/propagation/dspace.js index e54696c..38d8d42 100644 --- a/src/propagation/dspace.js +++ b/src/propagation/dspace.js @@ -245,7 +245,7 @@ export default function dspace(options) { nm = xni + (xndt * ft) + (xnddt * ft * ft * 0.5); xl = xli + (xldot * ft) + (xndt * ft * ft * 0.5); if (irez !== 1) { - mm = xl - ((2.0 * nodem) + (2.0 * theta)); + mm = (xl - (2.0 * nodem)) + (2.0 * theta); dndt = nm - no; } else { mm = (xl - nodem - argpm) + theta;