test_scanningInstrumentController
- test_scanningInstrumentController.scanningInstrumentControllerTestFunction(att_limit=0.1, att_mag=0.1, use_rate_limit=1, rate_limit=0.01, omega_mag=0.001, deviceStatus=None, controlStatus=None, expected_result=None)[source]
Test method
- test_scanningInstrumentController.test_scanningInstrumentController(att_limit, att_mag, use_rate_limit, rate_limit, omega_mag, deviceStatus, controlStatus, expected_result)[source]
Validation Test Description
This test verifies if the module is working properly checking for input conditions such as rate limit, attitude error, and device status.
Test Parameters
- Parameters:
att_limit (float) – The attitude error tolerance
att_mag (float) – The magnitude of the attitude
use_rate_limit (int) – Determines if the rate limit requirement is enabled
rate_limit (float) – The rate limit requirement
omega_mag (float) – The magnitude of the angular velocity
deviceStatus (int) – The instrument status (on/off)
controlStatus (int) – The controller status (on/off)
expected_result (list) – The expected output of the module
Description of Variables Being Tested
The test checks the data stored in deviceCmdOutMsg and compares it to the expected result.