diff --git a/application/controllers/Satellite.php b/application/controllers/Satellite.php index 7c2f6579f..d35ef170a 100644 --- a/application/controllers/Satellite.php +++ b/application/controllers/Satellite.php @@ -211,11 +211,11 @@ class Satellite extends CI_Controller { } function calcpass($sat_tle) { - require_once realpath(__DIR__ . "/../../predict/Predict.php"); - require_once realpath(__DIR__ . "/../../predict/Predict/Sat.php"); - require_once realpath(__DIR__ . "/../../predict/Predict/QTH.php"); - require_once realpath(__DIR__ . "/../../predict/Predict/Time.php"); - require_once realpath(__DIR__ . "/../../predict/Predict/TLE.php"); + require_once "./src/predict/Predict.php"; + require_once "./src/predict/Predict/Sat.php"; + require_once "./src/predict/Predict/QTH.php"; + require_once "./src/predict/Predict/Time.php"; + require_once "./src/predict/Predict/TLE.php"; // The observer or groundstation is called QTH in ham radio terms $predict = new Predict(); diff --git a/predict/composer.json b/predict/composer.json deleted file mode 100644 index f8032d295..000000000 --- a/predict/composer.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "predict/predict", - "type": "library", - "description": "Predict PHP", - "keywords": [ - "sgp", - "sgp4", - "sdp4", - "satellite", - "iss" - ], - "homepage": "https://github.com/shupp/Predict", - "authors": [ - { - "name": "Bill Shupp", - "email": "bill@shupp.org" - } - ] -} diff --git a/predict/generatePackage.php b/predict/generatePackage.php deleted file mode 100644 index 287dd41bf..000000000 --- a/predict/generatePackage.php +++ /dev/null @@ -1,63 +0,0 @@ -setOptions(array( - 'baseinstalldir' => '/', - 'simpleoutput' => true, - 'packagedirectory' => './', - 'filelistgenerator' => 'file', - 'ignore' => array('generatePackage.php', 'xhprof_lib/*'), - 'dir_roles' => array( - 'tests' => 'test', - 'examples' => 'doc' - ), - 'exceptions' => array('README.md' => 'doc'), -)); - -$packagexml->setPackage('Predict'); -$packagexml->setSummary('A partial port of the Gpredict program for satellite tracking'); -$packagexml->setDescription( - 'Predict is a partial PHP port of the Gpredict (http://gpredict.oz9aec.net/) program that ' - . 'allows real-time tracking and orbit prediction of satellites from two line element sets. ' - . 'It supports the SGP4 and SDP4 models for prediction.' -); - -$packagexml->setChannel('shupp.github.com/pirum'); -$packagexml->setAPIVersion('0.2.2'); -$packagexml->setReleaseVersion('0.2.2'); - -$packagexml->setReleaseStability('alpha'); - -$packagexml->setAPIStability('alpha'); - -$packagexml->setNotes(' -* Addec Predict_TLE::createChecksum() -* Updates to examples -'); -$packagexml->setPackageType('php'); -$packagexml->addRelease(); - -$packagexml->detectDependencies(); - -$packagexml->addMaintainer('lead', - 'shupp', - 'Bill Shupp', - 'shupp@php.net'); -$packagexml->setLicense('GPL v2.1', - 'http://www.opensource.org/licenses/gpl-license.php'); - -$packagexml->setPhpDep('5.2.0'); -$packagexml->setPearinstallerDep('1.4.0b1'); -$packagexml->addExtensionDep('required', 'date'); - -$packagexml->generateContents(); -$packagexml->writePackageFile(); - -?> diff --git a/predict/package.xml b/predict/package.xml deleted file mode 100644 index 783eb5477..000000000 --- a/predict/package.xml +++ /dev/null @@ -1,182 +0,0 @@ - - - Predict - shupp.github.com/pirum - A partial port of the Gpredict program for satellite tracking - Predict is a partial PHP port of the Gpredict (http://gpredict.oz9aec.net/) program that allows real-time tracking and orbit prediction of satellites from two line element sets. It supports the SGP4 and SDP4 models for prediction. - - Bill Shupp - shupp - shupp@php.net - yes - - 2014-03-06 - - - 0.2.2 - 0.2.2 - - - alpha - alpha - - GPL v2.1 - -* Addec Predict_TLE::createChecksum() -* Updates to examples - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5.2.0 - - - 1.4.0b1 - - - date - - - - - - - - 0.1.0 - 0.1.0 - - - alpha - alpha - - 2011-08-22 - GPL v2.1 - -* Initial release - - - - - 0.1.1 - 0.1.1 - - - alpha - alpha - - 2011-09-05 - GPL v2.1 - -* Fixed minimum elevation bug in visible pass detection -* Updated precision of Pogson's Ratio, refactored calculate magnitude to be more readble, as well as added comments - - - - - 0.1.2 - 0.1.2 - - - alpha - alpha - - 2011-09-25 - GPL v2.1 - -* Added Predict_Time::getEpochTimeStamp() - - - - - 0.2.0 - 0.2.0 - - - alpha - alpha - - 2012-05-21 - GPL v2.1 - -* Fixed bug in Predict_Time::unix2daynum() -* Updated example iss.tle file - - - - - 0.2.1 - 0.2.1 - - - alpha - alpha - - 2012-07-04 - GPL v2.1 - -* Corrected role of README.md - - - - - 0.2.2 - 0.2.2 - - - alpha - alpha - - 2014-03-06 - GPL v2.1 - -* Addec Predict_TLE::createChecksum() -* Updates to examples - - - - diff --git a/predict/Predict.php b/src/predict/Predict.php similarity index 97% rename from predict/Predict.php rename to src/predict/Predict.php index 9e3fa162e..1c8713984 100644 --- a/predict/Predict.php +++ b/src/predict/Predict.php @@ -35,16 +35,16 @@ along with this program; if not, visit http://www.fsf.org/ */ -require_once realpath(__DIR__ . "/../predict/Predict/Time.php"); -require_once realpath(__DIR__ . "/../predict/Predict/Math.php"); -require_once realpath(__DIR__ . "/../predict/Predict/Pass.php"); -require_once realpath(__DIR__ . "/../predict/Predict/PassDetail.php"); -require_once realpath(__DIR__ . "/../predict/Predict/Vector.php"); -require_once realpath(__DIR__ . "/../predict/Predict/Geodetic.php"); -require_once realpath(__DIR__ . "/../predict/Predict/ObsSet.php"); -require_once realpath(__DIR__ . "/../predict/Predict/Solar.php"); -require_once realpath(__DIR__ . "/../predict/Predict/SGPSDP.php"); -require_once realpath(__DIR__ . "/../predict/Predict/SGPSDP.php"); +require_once "Predict/Time.php"; +require_once "Predict/Math.php"; +require_once "Predict/Pass.php"; +require_once "Predict/PassDetail.php"; +require_once "Predict/Vector.php"; +require_once "Predict/Geodetic.php"; +require_once "Predict/ObsSet.php"; +require_once "Predict/Solar.php"; +require_once "Predict/SGPSDP.php"; +require_once "Predict/SGPSDP.php"; /** * The main Predict class. Contains constants for use by other classes, as well as diff --git a/predict/Predict/DeepArg.php b/src/predict/Predict/DeepArg.php similarity index 100% rename from predict/Predict/DeepArg.php rename to src/predict/Predict/DeepArg.php diff --git a/predict/Predict/DeepStatic.php b/src/predict/Predict/DeepStatic.php similarity index 100% rename from predict/Predict/DeepStatic.php rename to src/predict/Predict/DeepStatic.php diff --git a/predict/Predict/Exception.php b/src/predict/Predict/Exception.php similarity index 100% rename from predict/Predict/Exception.php rename to src/predict/Predict/Exception.php diff --git a/predict/Predict/Geodetic.php b/src/predict/Predict/Geodetic.php similarity index 100% rename from predict/Predict/Geodetic.php rename to src/predict/Predict/Geodetic.php diff --git a/predict/Predict/Math.php b/src/predict/Predict/Math.php similarity index 98% rename from predict/Predict/Math.php rename to src/predict/Predict/Math.php index 37b3a1cbc..e9c534513 100644 --- a/predict/Predict/Math.php +++ b/src/predict/Predict/Math.php @@ -5,7 +5,7 @@ * Ported to PHP by Bill Shupp. Original comments below */ -require_once realpath(__DIR__ . "/../../predict/Predict.php"); +require_once realpath(__DIR__ . "/../Predict.php"); /* * Unit SGP_Math diff --git a/predict/Predict/ObsSet.php b/src/predict/Predict/ObsSet.php similarity index 100% rename from predict/Predict/ObsSet.php rename to src/predict/Predict/ObsSet.php diff --git a/predict/Predict/Pass.php b/src/predict/Predict/Pass.php similarity index 100% rename from predict/Predict/Pass.php rename to src/predict/Predict/Pass.php diff --git a/predict/Predict/PassDetail.php b/src/predict/Predict/PassDetail.php similarity index 93% rename from predict/Predict/PassDetail.php rename to src/predict/Predict/PassDetail.php index 9fbf423a5..57529b47c 100644 --- a/predict/Predict/PassDetail.php +++ b/src/predict/Predict/PassDetail.php @@ -1,6 +1,6 @@