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