Testing (BBB)

Electrical Tests

  1. Verify 3V3, 5V0, 9V0 power testpoints report correctly.

Firmware Tests

  1. LED test
    1. Liveliness - verify that Error, Tracking, Heartbeat, CAN_TX/CAN_RX LEDs turn on.
  2. CAN tests
    1. Loopback - HEARTBEAT CAN message can be sent and received in loopback configuration.
    2. Secondary device - HEARTBEAT CAN message can be sent and received between
    3. two devices.
  3. Irradiance sensor tests
    1. Liveliness - verify that irradiance measurements can be taken from each
    2. irradiance sensor.
    3. Replication - verify that irradiance measurements can be taken at various
    4. operating frequencies and determine message dropout metrics.
    5. Accuracy - verify that the sensors are accurate within a known range of
    6. lighting conditions, with the appropriate calibration function.
  4. State machine tests
    1. Verify that the state machine transitions as expected given all possible inputs.
    2. Verify that mock inputs properly trigger event generators.
    3. Verify that events associated with each event generator execute as expected.
      1. CanEG event task: process input CAN messages (SET_MODE, ACK_FAULT, IRR_CONF).
      2. StateMachineEG event task: transitions state and enables required EGs.
      3. IrradEG event task: performs irradiance measurement and outputs result
      4. to CAN.
      5. Heartbeat event task: outputs heartbeat CAN message.