Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sgp4 library #3

Open
lubeskih opened this issue Dec 18, 2022 · 0 comments
Open

sgp4 library #3

lubeskih opened this issue Dec 18, 2022 · 0 comments

Comments

@lubeskih
Copy link
Owner

line 1164 on sgp4.js
adjust

       if (em >= 1.0 || em < -0.001) { // || (am < 0.95)
            satrec.error_message = 'mean eccentricity ' + em + ' not within range 0.0 <= e < 1.0';
            satrec.error = 1;
            // sgp4fix to return if there is an error in eccentricity
            console.log(satrec.error_message);
            return [false, false];
        }

to

       if (em >= 1.0 || em < -0.01) { // || (am < 0.95)
            satrec.error_message = 'mean eccentricity ' + em + ' not within range 0.0 <= e < 1.0';
            satrec.error = 1;
            // sgp4fix to return if there is an error in eccentricity
            console.log(satrec.error_message);
            return [false, false];
        }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant