-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pos vel tests passing and added magic enum
- Loading branch information
1 parent
ff4dae5
commit 6b6347d
Showing
13 changed files
with
189 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include <lupnt/core/constants.h> | ||
|
||
#include <catch2/catch_test_macros.hpp> | ||
#include <catch2/matchers/catch_matchers_string.hpp> | ||
#include <iostream> | ||
#include <vector> | ||
|
||
#include "../utils.cc" | ||
|
||
using namespace lupnt; | ||
using namespace Catch::Matchers; | ||
|
||
const double epsilon = 1e-6; | ||
|
||
TEST_CASE("core.enums") { | ||
auto vals = enum_values<NaifId>(); | ||
REQUIRE(vals.size() > 20); | ||
for (auto naif_id : vals) { | ||
auto naif_id_str = enum_name(naif_id); | ||
auto naif_id_val = enum_cast<NaifId>(naif_id_str).value(); | ||
REQUIRE(naif_id == naif_id_val); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
SSB SUN 4.306222834e+00 -7.419872695e+05 +9.659292737e+05 +4.278400954e+05 -1.408381994e-02 -5.627820863e-03 -2.001044848e-03 | ||
SSB EMB 5.032556135e+02 -7.604591656e+07 -1.195584954e+08 -5.181907715e+07 +2.534386321e+01 -1.370093397e+01 -5.938948538e+00 | ||
SSB EARTH 5.032710330e+02 -7.604958762e+07 -1.195615714e+08 -5.182005163e+07 +2.535189040e+01 -1.370869149e+01 -5.943122540e+00 | ||
SSB MOON 5.020021891e+02 -7.574745701e+07 -1.193084156e+08 -5.173985179e+07 +2.469124806e+01 -1.307024395e+01 -5.599599808e+00 | ||
SSB MARS_BARYCENTER 7.038906758e+02 +7.098457857e+07 -1.798830097e+08 -8.445829605e+07 +2.370522429e+01 +9.564791120e+00 +3.747645442e+00 | ||
SUN SSB 4.306222834e+00 +7.419872695e+05 -9.659292737e+05 -4.278400954e+05 +1.408381994e-02 +5.627820863e-03 +2.001044848e-03 | ||
SUN EMB 5.050667010e+02 -7.530392929e+07 -1.205244247e+08 -5.224691725e+07 +2.535794703e+01 -1.369530615e+01 -5.936947493e+00 | ||
SUN EARTH 5.050820798e+02 -7.530760035e+07 -1.205275007e+08 -5.224789172e+07 +2.536597422e+01 -1.370306366e+01 -5.941121495e+00 | ||
SUN MOON 5.038165897e+02 -7.500546974e+07 -1.202743449e+08 -5.216769189e+07 +2.470533188e+01 -1.306461613e+01 -5.597598763e+00 | ||
SUN MARS_BARYCENTER 7.080419077e+02 +7.172656584e+07 -1.808489389e+08 -8.488613615e+07 +2.371930811e+01 +9.570418941e+00 +3.749646487e+00 | ||
EMB SSB 5.032556135e+02 +7.604591656e+07 +1.195584954e+08 +5.181907715e+07 -2.534386321e+01 +1.370093397e+01 +5.938948538e+00 | ||
EMB SUN 5.050667010e+02 +7.530392929e+07 +1.205244247e+08 +5.224691725e+07 -2.535794703e+01 +1.369530615e+01 +5.936947493e+00 | ||
EMB EARTH 1.630307316e-02 -3.671063554e+03 -3.075991310e+03 -9.744748361e+02 +8.027190535e-03 -7.757510644e-03 -4.174001945e-03 | ||
EMB MOON 1.325449111e+00 +2.984595529e+05 +2.500798414e+05 +7.922535789e+04 -6.526151518e-01 +6.306900233e-01 +3.393487299e-01 | ||
EMB MARS_BARYCENTER 5.411796773e+02 +1.470304951e+08 -6.032451425e+07 -3.263921890e+07 -1.638638918e+00 +2.326572509e+01 +9.686593980e+00 | ||
EARTH SSB 5.032710330e+02 +7.604958762e+07 +1.195615714e+08 +5.182005163e+07 -2.535189040e+01 +1.370869149e+01 +5.943122540e+00 | ||
EARTH SUN 5.050820798e+02 +7.530760035e+07 +1.205275007e+08 +5.224789172e+07 -2.536597422e+01 +1.370306366e+01 +5.941121495e+00 | ||
EARTH EMB 1.630307316e-02 +3.671063554e+03 +3.075991310e+03 +9.744748361e+02 -8.027190535e-03 +7.757510644e-03 +4.174001945e-03 | ||
EARTH MOON 1.341752184e+00 +3.021306164e+05 +2.531558327e+05 +8.019983273e+04 -6.606423423e-01 +6.384475340e-01 +3.435227319e-01 | ||
EARTH MARS_BARYCENTER 5.411863059e+02 +1.470341662e+08 -6.032143826e+07 -3.263824442e+07 -1.646666108e+00 +2.327348260e+01 +9.690767982e+00 | ||
MOON SSB 5.020021891e+02 +7.574745701e+07 +1.193084156e+08 +5.173985179e+07 -2.469124806e+01 +1.307024395e+01 +5.599599808e+00 | ||
MOON SUN 5.038165897e+02 +7.500546974e+07 +1.202743449e+08 +5.216769189e+07 -2.470533188e+01 +1.306461613e+01 +5.597598763e+00 | ||
MOON EMB 1.325449111e+00 -2.984595529e+05 -2.500798414e+05 -7.922535789e+04 +6.526151518e-01 -6.306900233e-01 -3.393487299e-01 | ||
MOON EARTH 1.341752184e+00 -3.021306164e+05 -2.531558327e+05 -8.019983273e+04 +6.606423423e-01 -6.384475340e-01 -3.435227319e-01 | ||
MOON MARS_BARYCENTER 5.406421457e+02 +1.467320356e+08 -6.057459409e+07 -3.271844426e+07 -9.860237662e-01 +2.263503507e+01 +9.347245250e+00 | ||
MARS_BARYCENTER SSB 7.038906758e+02 -7.098457857e+07 +1.798830097e+08 +8.445829605e+07 -2.370522429e+01 -9.564791120e+00 -3.747645442e+00 | ||
MARS_BARYCENTER SUN 7.080419077e+02 -7.172656584e+07 +1.808489389e+08 +8.488613615e+07 -2.371930811e+01 -9.570418941e+00 -3.749646487e+00 | ||
MARS_BARYCENTER EMB 5.411796773e+02 -1.470304951e+08 +6.032451425e+07 +3.263921890e+07 +1.638638918e+00 -2.326572509e+01 -9.686593980e+00 | ||
MARS_BARYCENTER EARTH 5.411863059e+02 -1.470341662e+08 +6.032143826e+07 +3.263824442e+07 +1.646666108e+00 -2.327348260e+01 -9.690767982e+00 | ||
MARS_BARYCENTER MOON 5.406421457e+02 -1.467320356e+08 +6.057459409e+07 +3.271844426e+07 +9.860237662e-01 -2.263503507e+01 -9.347245250e+00 | ||
t_tai 6.4329496000000024e+08 | ||
center target lt [s] x [km] y [km] z [km] vx [km/s] vy [km/s] vz [km/s] | ||
SSB SUN 4.306222834e+00 -741987.269464739 +965929.273698082 +427840.095432443 -0.014083820 -0.005627821 -0.002001045 | ||
SSB EMB 5.032556135e+02 -76045916.558535278 -119558495.426486567 -51819077.151945584 +25.343863212 -13.700933974 -5.938948538 | ||
SSB EARTH 5.032710330e+02 -76049587.622088879 -119561571.417796656 -51820051.626781650 +25.351890403 -13.708691485 -5.943122540 | ||
SSB MOON 5.020021891e+02 -75747457.005650803 -119308415.585131600 -51739851.794055827 +24.691248060 -13.070243951 -5.599599808 | ||
SSB MARS_BARYCENTER 7.038906758e+02 +70984578.570678294 -179883009.673950434 -84458296.051201954 +23.705224294 +9.564791120 +3.747645442 | ||
SUN SSB 4.306222834e+00 +741987.269464739 -965929.273698082 -427840.095432443 +0.014083820 +0.005627821 +0.002001045 | ||
SUN EMB 5.050667010e+02 -75303929.289070532 -120524424.700184643 -52246917.247378029 +25.357947032 -13.695306154 -5.936947493 | ||
SUN EARTH 5.050820798e+02 -75307600.352624133 -120527500.691494733 -52247891.722214095 +25.365974223 -13.703063664 -5.941121495 | ||
SUN MOON 5.038165897e+02 -75005469.736186057 -120274344.858829677 -52167691.889488272 +24.705331880 -13.064616130 -5.597598763 | ||
SUN MARS_BARYCENTER 7.080419077e+02 +71726565.840143040 -180848938.947648525 -84886136.146634400 +23.719308114 +9.570418941 +3.749646487 | ||
EMB SSB 5.032556135e+02 +76045916.558535278 +119558495.426486567 +51819077.151945584 -25.343863212 +13.700933974 +5.938948538 | ||
EMB SUN 5.050667010e+02 +75303929.289070532 +120524424.700184643 +52246917.247378029 -25.357947032 +13.695306154 +5.936947493 | ||
EMB EARTH 1.630307316e-02 -3671.063553595 -3075.991310093 -974.474836066 +0.008027191 -0.007757511 -0.004174002 | ||
EMB MOON 1.325449111e+00 +298459.552884478 +250079.841354972 +79225.357889756 -0.652615152 +0.630690023 +0.339348730 | ||
EMB MARS_BARYCENTER 5.411796773e+02 +147030495.129213572 -60324514.247463867 -32639218.899256371 -1.638638918 +23.265725094 +9.686593980 | ||
EARTH SSB 5.032710330e+02 +76049587.622088879 +119561571.417796656 +51820051.626781650 -25.351890403 +13.708691485 +5.943122540 | ||
EARTH SUN 5.050820798e+02 +75307600.352624133 +120527500.691494733 +52247891.722214095 -25.365974223 +13.703063664 +5.941121495 | ||
EARTH EMB 1.630307316e-02 +3671.063553595 +3075.991310093 +974.474836066 -0.008027191 +0.007757511 +0.004174002 | ||
EARTH MOON 1.341752184e+00 +302130.616438072 +253155.832665065 +80199.832725823 -0.660642342 +0.638447534 +0.343522732 | ||
EARTH MARS_BARYCENTER 5.411863059e+02 +147034166.192767173 -60321438.256153777 -32638244.424420305 -1.646666108 +23.273482605 +9.690767982 | ||
MOON SSB 5.020021891e+02 +75747457.005650803 +119308415.585131600 +51739851.794055827 -24.691248060 +13.070243951 +5.599599808 | ||
MOON SUN 5.038165897e+02 +75005469.736186057 +120274344.858829677 +52167691.889488272 -24.705331880 +13.064616130 +5.597598763 | ||
MOON EMB 1.325449111e+00 -298459.552884478 -250079.841354972 -79225.357889756 +0.652615152 -0.630690023 -0.339348730 | ||
MOON EARTH 1.341752184e+00 -302130.616438072 -253155.832665065 -80199.832725823 +0.660642342 -0.638447534 -0.343522732 | ||
MOON MARS_BARYCENTER 5.406421457e+02 +146732035.576329112 -60574594.088818833 -32718444.257146128 -0.986023766 +22.635035071 +9.347245250 | ||
MARS_BARYCENTER SSB 7.038906758e+02 -70984578.570678294 +179883009.673950434 +84458296.051201954 -23.705224294 -9.564791120 -3.747645442 | ||
MARS_BARYCENTER SUN 7.080419077e+02 -71726565.840143040 +180848938.947648525 +84886136.146634400 -23.719308114 -9.570418941 -3.749646487 | ||
MARS_BARYCENTER EMB 5.411796773e+02 -147030495.129213572 +60324514.247463867 +32639218.899256371 +1.638638918 -23.265725094 -9.686593980 | ||
MARS_BARYCENTER EARTH 5.411863059e+02 -147034166.192767173 +60321438.256153777 +32638244.424420305 +1.646666108 -23.273482605 -9.690767982 | ||
MARS_BARYCENTER MOON 5.406421457e+02 -146732035.576329112 +60574594.088818833 +32718444.257146128 +0.986023766 -22.635035071 -9.347245250 |
Oops, something went wrong.