Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthospap committed Sep 18, 2024
1 parent 1ffdebb commit 9d84bc5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
15 changes: 7 additions & 8 deletions test/unit_tests/geodetic.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "transformations.hpp"
#include "units.hpp"
#include <cstdio>
#include <cassert>
#include <cstdio>

using namespace dso;
const double Re = 6371e3;
Expand All @@ -15,7 +15,7 @@ constexpr const double MAX_DIFF_LON_RAD = sec2rad(MAX_DIFF_LON_ASEC);
int main() {

Eigen::Matrix<double, 3, 1> maxdiffs = Eigen::Matrix<double, 3, 1>::Zero();
GeodeticCrd mhgt,mlat,mlon;
GeodeticCrd mhgt, mlat, mlon;

/* first check internal precision with
* -180 < lon < 180 and -90 < lat < 90
Expand Down Expand Up @@ -71,14 +71,13 @@ int main() {
#ifdef REPORT_TEST_DIFFS
printf("Test : Geodetic -> Cartesian -> Geodetic\n");
printf("Max height diff = %.2e[m] at (%.3f[deg], %.3f[deg], %.3f[m])\n",
maxdiffs(0), rad2deg(mhgt.lat()), rad2deg(mhgt.lon()),
mhgt.hgt());
maxdiffs(0), rad2deg(mhgt.lat()), rad2deg(mhgt.lon()), mhgt.hgt());
printf("Max lat diff = %.2e[sec] at (%.3f[deg], %.3f[deg], %.3f[m])\n",
rad2sec(maxdiffs(1)), rad2deg(mlat.lat()),
rad2deg(mlat.lon()), mlat.hgt());
rad2sec(maxdiffs(1)), rad2deg(mlat.lat()), rad2deg(mlat.lon()),
mlat.hgt());
printf("Max lon diff = %.2e[sec] at (%.3f[deg], %.3f[deg], %.3f[m])\n",
rad2sec(maxdiffs(2)), rad2deg(mlon.lat()),
rad2deg(mlon.lon()), mlon.hgt());
rad2sec(maxdiffs(2)), rad2deg(mlon.lat()), rad2deg(mlon.lon()),
mlon.hgt());
#endif

return 0;
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/spherical.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "transformations.hpp"
#include "units.hpp"
#include <cstdio>
#include <cassert>
#include <cstdio>

using namespace dso;
const double Re = 6371e3;
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/type_wrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using namespace dso;

int main() {

Eigen::Matrix<double,3,1> v;
Eigen::Matrix<double, 3, 1> v;
GeodeticCrd g1;
GeodeticCrdView g2(v);
GeodeticCrdConstView g3(v);
Expand Down
2 changes: 1 addition & 1 deletion test/unit_tests/type_wrappers_cartesian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ void touch(CartesianCrdView v) noexcept {

int main() {

Eigen::Matrix<double,3,1> v;
Eigen::Matrix<double, 3, 1> v;
v(0) = 1e0;
v(1) = 2e0;
v(2) = 3e0;
Expand Down

0 comments on commit 9d84bc5

Please sign in to comment.