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

Correct one AU to 149597870700 m exactly #163

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/keplerian_toolbox/astro_constants.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#define M_E boost::math::constants::e<double>()
#endif

#define ASTRO_AU 149597870691.0
#define ASTRO_AU 149597870700.0
#define ASTRO_JR 71492000.0
#define ASTRO_MU_SUN 1.32712440018e20
#define ASTRO_MU_EARTH 398600441800000.0
Expand Down
8 changes: 7 additions & 1 deletion include/keplerian_toolbox/third_party/libsgp4/Globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ const double kF = 1.0 / 298.26;
* earth rotation per sideral day
*/
const double kOMEGA_E = 1.00273790934;
const double kAU = 1.49597870691e8;
/* 1 AU, here given in km, per the IAU 2012 Resolution B2
* and the BIPM published "The International System of Units (SI), 9th ed.",
* Table 8 of "Non-SI units accepted for use with the SI units".
* Ref: https://www.iau.org/static/resolutions/IAU2012_English.pdf, accessed 2022-12-17
* Ref: https://www.bipm.org/documents/20126/41483022/SI-Brochure-9.pdf, accessed 2022-12-17
*/
const double kAU = 1.49597870700e8;

const double kSECONDS_PER_DAY = 86400.0;
const double kMINUTES_PER_DAY = 1440.0;
Expand Down