Defines | Functions | Variables
check_coord_system.c File Reference
#include <math.h>
#include <check.h>
#include "check_utils.h"
#include <coord_system.h>
#include <constants.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_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 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 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.


Variable Documentation

const double 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 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.



swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:56:47