Defines | Functions | Variables
check_coord_system.c File Reference
#include <math.h>
#include <check.h>
#include "check_utils.h"
#include <coord_system.h>
#include <pvt.h>
Include dependency graph for check_coord_system.c:

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_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 const ecefs [NUM_COORDS][3]
const double const llhs [NUM_COORDS][3]

Define Documentation

#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.


Function Documentation

END_TEST Suite* coord_system_suite ( void  )

Definition at line 316 of file check_coord_system.c.

START_TEST ( test_wgsllh2ecef  )

Definition at line 47 of file check_coord_system.c.

END_TEST START_TEST ( test_wgsecef2llh  )

Definition at line 69 of file check_coord_system.c.

END_TEST START_TEST ( test_wgsllh2ecef2llh  )

Definition at line 96 of file check_coord_system.c.

END_TEST START_TEST ( test_wgsecef2llh2ecef  )

Definition at line 131 of file check_coord_system.c.

END_TEST START_TEST ( test_random_wgsllh2ecef2llh  )

Definition at line 164 of file check_coord_system.c.

END_TEST START_TEST ( test_random_wgsecef2llh2ecef  )

Definition at line 230 of file check_coord_system.c.

END_TEST START_TEST ( test_random_wgsecef2ned_d_0  )

Definition at line 296 of file check_coord_system.c.


Variable Documentation

const double const ecefs[NUM_COORDS][3]
Initial value:
 {
  {EARTH_A, 0, 0},
  {-EARTH_A, 0, 0},
  {0, EARTH_A, 0},
  {0, -EARTH_A, 0},
  {0, 0, EARTH_B},
  {0, 0, -EARTH_B},
  {0, 0, (EARTH_B+22)},
  {0, 0, -(EARTH_B+22)},
  {(22+EARTH_A), 0, 0},
  {-(22+EARTH_A), 0, 0},
}

Definition at line 34 of file check_coord_system.c.

const double const llhs[NUM_COORDS][3]
Initial value:
 {
  {0, 0, 0},        
  {0, 180*D2R, 0},  
  {0, 90*D2R, 0},   
  {0, -90*D2R, 0},  
  {90*D2R, 0, 0},   
  {-90*D2R, 0, 0},  
  {90*D2R, 0, 22},  
  {-90*D2R, 0, 22}, 
  {0, 0, 22},       
  {0, 180*D2R, 22}, 
}

Definition at line 22 of file check_coord_system.c.



enu
Author(s): Mike Purvis
autogenerated on Sun Oct 5 2014 23:44:53