Skip to content

Commit

Permalink
started fixing test_geodetic
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Feb 19, 2011
1 parent 75ce0c2 commit 9a8170b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sw/airborne/test/test_geodetic.c
Expand Up @@ -28,7 +28,7 @@ static void test_ned_to_ecef_to_ned(void);
static void test_enu_to_ecef_to_enu( void );

/*
* toulouse 43.6052765, 1.4427764, 180.123019274324 -> 4624497.0 116475.0 4376563.0
* toulouse lat 43.6052765, lon 1.4427764, alt 180.123019274324 -> x 4624497.0 y 116475.0 z 4376563.0
*/

int main(int argc, char** argv) {
Expand Down Expand Up @@ -152,11 +152,11 @@ static void test_enu_of_ecef_int(void) {
M_OF_CM((double)my_enu_point_i.z));
#endif

FLOAT_T ex = my_enu_point_f.x - M_OF_CM((double)my_enu_point_i.x);
float ex = my_enu_point_f.x - M_OF_CM((double)my_enu_point_i.x);
if (fabs(ex) > max_err.x) max_err.x = fabs(ex);
FLOAT_T ey = my_enu_point_f.y - M_OF_CM((double)my_enu_point_i.y);
float ey = my_enu_point_f.y - M_OF_CM((double)my_enu_point_i.y);
if (fabs(ey) > max_err.y) max_err.y = fabs(ey);
FLOAT_T ez = my_enu_point_f.z - M_OF_CM((double)my_enu_point_i.z);
float ez = my_enu_point_f.z - M_OF_CM((double)my_enu_point_i.z);
if (fabs(ez) > max_err.z) max_err.z = fabs(ez);
sum_err += ex*ex + ey*ey + ez*ez;
}
Expand Down

0 comments on commit 9a8170b

Please sign in to comment.