test_gnss_models module

Tests for GNSS SV state calculation methods.

test_gnss_models.calculate_state(android_gt, idx)[source]

Helper function to create state instance of NavData for tests.

Parameters:
  • android_gt (gnss_lib_py.parsers.google_decimeter.AndroidGroundTruth2022) – NavData containing ground truth for Android measurements.

  • idx (int) – Index of ground truth for which states are required.

Returns:

state – NavData containing state information for one time instance.

Return type:

gnss_lib_py.navdata.navdata.NavData

test_gnss_models.fixture_iono_params()[source]

Ionospheric delay parameters for the unit test Android measurements.

Returns:

iono_params – 2x4 (first row, alpha and second row, beta) of ionospheric delay parameters.

Return type:

np.ndarray

test_gnss_models.test_add_measures_wrapper(android_measurements, android_state, ephemeris_path, iono_params, error_tol_dec)[source]

Test wrapper that adds SV states to received measurements.

Parameters:
  • android_measurements (gnss_lib_py.navdata.navdata.NavData) – NavData instance containing L1 measurements for received GPS measurements.

  • android_state (gnss_lib_py.navdata.navdata.NavData) – Instance of NavData containing gps_millis and Rx position estimates from Android Derived.

  • ephemeris_path (string) – The location where ephemeris files are read from or downloaded to if they don’t exist.

  • iono_params (np.ndarray) – 2x4 (first row, alpha and second row, beta) of ionospheric delay parameters.

  • error_tol_dec (Dict) – Dictionary containing decimals for error tolerances in computed states. Used for comparing to SV states provided in Android Derived measurements.

test_gnss_models.test_measure_generation(gps_measurement_frames, android_gt)[source]

Test code to estimate expected measurements given observables.

Parameters:
  • gps_measurement_frames (Dict) – Dictionary containing lists of visible ephemeris parameters, received Android measurements and SV states. The lists are indexed by discrete time indices.

  • android_gt (gnss_lib_py.parsers.google_decimeter.AndroidGroundTruth2022) – NavData containing ground truth for Android measurements.

test_gnss_models.test_pseudorange_corrections(gps_measurement_frames, android_gt, iono_params)[source]

Test code for generating pseudorange corrections.

Parameters:
  • gps_measurement_frames (Dict) – Dictionary containing lists of visible ephemeris parameters, received Android measurements and SV states. The lists are indexed by discrete time indices.

  • android_gt (gnss_lib_py.parsers.google_decimeter.AndroidGroundTruth2022) – NavData containing ground truth for Android measurements.

  • iono_params (np.ndarray) – 2x4 (first row, alpha and second row, beta) of ionospheric delay parameters.

test_gnss_models.test_state_extraction()[source]

Test the state extraction code by comparing extracted values to values used to set states.