Skip to content

Testing

Lauren Greenhill edited this page Nov 27, 2022 · 8 revisions

Unit Tests

To efficiently run tests use the following flags: pio test -f "name of your test" -e "name of your environment"

For example: pio test -f test_burnwire -e debug-linux

Environments can be found in the .ini file. If pio is not recognized by your terminal click the "Platform: IO New Terminal" arrow icon next to the socket icon.

Nanoracks Tests

Fault

  • Trigger fault by heating temperature sensor outside of normal range.
  • Monitor voltage of burn wire mosfet gate pin.
  • Ensure fault is reported in Normal Report.

Low Power

  • Ensure CubeSat enters a low power mode when voltage is less than 3.75V.
  • Ensure CubeSat exits a low power mode when voltage is greater than 3.9V.
  • Monitor voltage of burn wire mosfet gate pin.

Power off CubeSat

  • Monitor voltage of burn wire mosfet gate pin.

Burn Sequence

  • Send command to fire before arm/deployment mode command.
  • Send command to arm before deployment mode command.
  • Ensure arm command times out if fire command is not received in designated time.

Command

  • Send command with incorrect format.
Clone this wiki locally