Permalink
Browse files

Minor fixes.

  • Loading branch information...
1 parent 26da5b0 commit 1cddc1e7025084c1ec4440fb3715a7fed4e34c94 @ezze ezze committed Jun 19, 2015
Showing with 22 additions and 3,074 deletions.
  1. +14 −8 README.md
  2. +4 −7 bower.json
  3. +3 −3 package.json
  4. +1 −1 sgp4_verification/js/controllers.js
  5. +0 −3,055 sgp4_verification/lib/sgp4/satellite.js
View
@@ -1,4 +1,4 @@
-# satellite.js v1.2
+# satellite.js v1.2.0
## Introduction
@@ -41,6 +41,12 @@ I would recommend anybody interested in satellite tracking or orbital propagatio
Get a free [Space Track account](https://www.space-track.org/auth/login) and download your own up to date TLEs
for use with this library.
+## Installation
+
+Install the library with [Bower](http://bower.io/):
+
+ bower install satellitejs
+
## Usage
Include `dist/satellite.min.js` as a script in your html or use as [Require.js](http://requirejs.org/) module.
@@ -69,9 +75,9 @@ a dependency of your module:
// Propagate satellite using time since epoch (in minutes).
var positionAndVelocity = satellite.sgp4 (satrec, timeSinceTleEpochMinutes);
- // Or you can use a calendar date and time (obtained from Javascript [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)).
- var now = new Date();
+ // Or you can use a calendar date and time (obtained from Javascript Date).
+ var now = new Date();
// NOTE: while Javascript Date returns months in range 0-11, all satellite.js methods require months in range 1-12.
var positionAndVelocity = satellite.propagate(
satrec,
@@ -85,8 +91,8 @@ a dependency of your module:
// The position_velocity result is a key-value pair of ECI coordinates.
// These are the base results from which all other coordinates are derived.
- var positionEci = positionAndVelocity.position;
- var velocityEci = positionAndVelocity.velocity;
+ var positionEci = positionAndVelocity.position,
+ velocityEci = positionAndVelocity.velocity;
// Set the Observer at 122.03 West by 36.96 North, in RADIANS
var observerGd = {
@@ -135,9 +141,9 @@ a dependency of your module:
var longitudeStr = satellite.degreesLong(longitude),
latitudeStr = satellite.degreesLat(latitude);
-## Building & testing
+## Building
-The code is organized as [https://github.com/amdjs/amdjs-api/wiki/AMD](AMD) modules but it can be built into
+The code is organized as [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules but it can be built into
a single file to use in production.
The library uses [Grunt task runner](http://gruntjs.com/) for building and testing. It also relies on [Bower](http://bower.io)
@@ -356,4 +362,4 @@ this way, sub-licensing freedoms notwithstanding.
I worked in the Dining Hall at UCSC for a month, which means I signed a form that gives UCSC partial ownership of
anything I make while under their aegis, so I included them as owners of the copyright.
-Please email all complaints to help@ucsc.edu
+Please email all complaints to help@ucsc.edu
View
@@ -1,7 +1,7 @@
{
- "name": "satellite-js",
+ "name": "satellitejs",
"version": "1.2.0",
- "homepage": "https://github.com/shashwatak/satellite-js",
+ "homepage": "https://github.com/solarpatrol/satellitejs",
"authors": [
"Shashwat Kandadai",
"Dmitriy Pushkov <ezze@ezze.org>"
@@ -13,12 +13,9 @@
],
"license": "MIT",
"ignore": [
- "**/.*",
- "grunt",
+ ".gitignore",
"node_modules",
- "lib",
- "sgp4_verification",
- "test"
+ "sgp4_verification"
],
"devDependencies": {
"requirejs-plugins": "~1.0.3"
View
@@ -1,5 +1,5 @@
{
- "name": "satellite-js",
+ "name": "satellitejs",
"version": "1.2.0",
"description": "SGP4/SDP4 calculation library",
"main": "src/satellite.js",
@@ -8,7 +8,7 @@
},
"repository": {
"type": "git",
- "url": "git://github.com/shashwatak/satellite-js"
+ "url": "git://github.com/solarpatrol/satellitejs"
},
"keywords": [
"sgp4",
@@ -26,7 +26,7 @@
],
"license": "MIT",
"bugs": {
- "url": "https://github.com/shashwatak/satellite-js/issues"
+ "url": "https://github.com/solarpatrol/satellite-js/issues"
},
"dependencies": {},
"devDependencies": {
@@ -200,7 +200,7 @@ function TestCtrl($scope) {
var look_angles_error = {
azimuth : Math.abs((known_look_angles["azimuth"] - test_look_angles["azimuth"]) / known_look_angles["azimuth"]),
elevation : Math.abs((known_look_angles["elevation"] - test_look_angles["elevation"]) / known_look_angles["elevation"]),
- range_sat : Math.abs((known_look_angles["range_sat"] - test_look_angles["range_sat"]) / known_look_angles["range_sat"])
+ rangeSat : Math.abs((known_look_angles["rangeSat"] - test_look_angles["rangeSat"]) / known_look_angles["rangeSat"])
};
result["look_error"] = look_angles_error;
};
Oops, something went wrong.

0 comments on commit 1cddc1e

Please sign in to comment.