#include <math.h>
#include <check.h>
#include "check_utils.h"
#include <coord_system.h>
#include <constants.h>
Go to the source code of this file.
Defines | |
#define | EARTH_A 6378137.0 |
#define | EARTH_B 6356752.31424517929553985595703125 |
#define | MAX_ANGLE_ERROR_RAD (MAX_ANGLE_ERROR_SEC*(D2R/3600.0)) |
#define | MAX_ANGLE_ERROR_SEC 1e-7 |
#define | MAX_DIST_ERROR_M 1e-6 |
#define | NUM_COORDS 10 |
Functions | |
END_TEST Suite * | coord_system_suite (void) |
START_TEST (test_llhdeg2rad) | |
END_TEST | START_TEST (test_wgsllh2ecef) |
END_TEST | START_TEST (test_wgsecef2llh) |
END_TEST | START_TEST (test_wgsllh2ecef2llh) |
END_TEST | START_TEST (test_wgsecef2llh2ecef) |
END_TEST | START_TEST (test_random_wgsllh2ecef2llh) |
END_TEST | START_TEST (test_random_wgsecef2llh2ecef) |
END_TEST | START_TEST (test_random_wgsecef2ned_d_0) |
Variables | |
const double | ecefs [NUM_COORDS][3] |
const double | llhs [NUM_COORDS][3] |
#define EARTH_A 6378137.0 |
Definition at line 17 of file check_coord_system.c.
#define EARTH_B 6356752.31424517929553985595703125 |
Definition at line 19 of file check_coord_system.c.
#define MAX_ANGLE_ERROR_RAD (MAX_ANGLE_ERROR_SEC*(D2R/3600.0)) |
Definition at line 14 of file check_coord_system.c.
#define MAX_ANGLE_ERROR_SEC 1e-7 |
Definition at line 13 of file check_coord_system.c.
#define MAX_DIST_ERROR_M 1e-6 |
Definition at line 10 of file check_coord_system.c.
#define NUM_COORDS 10 |
Definition at line 21 of file check_coord_system.c.
END_TEST Suite* coord_system_suite | ( | void | ) |
Definition at line 339 of file check_coord_system.c.
START_TEST | ( | test_llhdeg2rad | ) |
Definition at line 47 of file check_coord_system.c.
END_TEST START_TEST | ( | test_wgsllh2ecef | ) |
Definition at line 70 of file check_coord_system.c.
END_TEST START_TEST | ( | test_wgsecef2llh | ) |
Definition at line 92 of file check_coord_system.c.
END_TEST START_TEST | ( | test_wgsllh2ecef2llh | ) |
Definition at line 119 of file check_coord_system.c.
END_TEST START_TEST | ( | test_wgsecef2llh2ecef | ) |
Definition at line 154 of file check_coord_system.c.
END_TEST START_TEST | ( | test_random_wgsllh2ecef2llh | ) |
Definition at line 187 of file check_coord_system.c.
END_TEST START_TEST | ( | test_random_wgsecef2llh2ecef | ) |
Definition at line 253 of file check_coord_system.c.
END_TEST START_TEST | ( | test_random_wgsecef2ned_d_0 | ) |
Definition at line 319 of file check_coord_system.c.
const double ecefs[NUM_COORDS][3] |