test_magnetometer

test_magnetometer.test_module(show_plots, useNoiseStd, useBias, useMinOut, useMaxOut, useScaleFactor, errTol)[source]

Validation Test Description

This section describes the specific unit tests conducted on this module. The test contains 16 tests and is located at test_magnetometer.py. The success criteria is to match the outputs with the generated truth.

Parameters:
  • useNoiseStd (string) – Defines if the standard deviation of the magnetometer measurements is used for this parameterized unit test

  • useBias (string) – Defines if the bias on the magnetometer measurements is used for this parameterized unit test

  • useMinOut (string) – Defines if the minimum bound for the measurement saturation is used for this parameterized unit test

  • useMaxOut (string) – Defines if the maximum bound for the measurement saturation is used for this parameterized unit test

  • useScaleFactor (string) – Defines if the scaling on the measurement is used for this parameterized unit test

  • errTol (double) – Defines the error tolerance for this parameterized unit test

Description of Variables Being Tested

In this file, we are checking the values of the variable:

tamData[3]

which is pulled from the log data to see if they match with the expected truth values.