test_simpleInstrumentController

test_simpleInstrumentController.test_simple_instrument_controller(show_plots, use_rate_limit, rate_limit, omega_mag, deviceStatus, controlStatus, expected_result)[source]

Validation Test Description

Unit test for simpleInstrumentController. The unit test specifically covers:

  1. If the controller correctly sends an image command if access and attitude error are within bounds

  2. If the controller does not image until the imaged variable is reset to 0

  3. If the controller sends an image command again after the imaged variable has been reset to 0

  4. If the rate tolerance limit only effects operation when enabled, and effects operation in the expected manner.

  5. If the controller sends an image command when deviceStatusInMsg is set to 1 and the instrumentStatus is set to 0

  6. If the controller does not send an image command when deviceStatusInMsg is set to 0 and the instrumentStatus is set to 1

  7. If the controller does send an image command when deviceStatusInMsg is not written and the instrumentStatus is set to 1