Lesson 3 of 4 · Representations, timing and integration evidence
Test attitude-software interfaces
8 minute lesson · 3 checks along the way
Your goal for this lessonDesign tests that distinguish algorithm behavior from data representation and hardware-interface errors.
In this lesson 3 sections · 3 checks
Read & understand
Getting the numbers across is part of the problem
AntelSat’s attitude work involved communicating between processors as well as calculating orientation. The report describes SPI messaging and remote invocation, with checks on computers, development boards and flight hardware. Each setting answers a different question about the same software path.
For an original classroom exercise, a reference calculation expects three ordered values: time, sensor reading and scale. If an adapter sends scale, time and sensor reading, the arithmetic may be implemented correctly but applied to the wrong inputs. Before adjusting the algorithm, verify the interface contract and the representation on both sides.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
A valid comparison needs a shared meaning
The thesis records test difficulties involving reference frames, time sequences and equivalent orientation representations. These are reminders that a numerical mismatch can arise from how a comparison is defined. A reference output is useful only when its conventions match those of the implementation under test.
Use a simpler original angle example: 180 degrees and −180 degrees indicate the same direction around a circle. A comparison that subtracts the numbers without accounting for wraparound reports a 360-degree difference. Specify the comparison rule first. This elementary example illustrates representation equivalence without requiring the learner to implement flight attitude mathematics.
Make comparisons mean the same thing
A mismatch can arise in an interface or comparison rule as well as an algorithm.
Open full-size diagram in a new tab: Make comparisons mean the same thingCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Build a test ladder with explicit boundaries
A host-computer test can make input cases quick to repeat. A connected-board test can exercise the communication path. A test on the target hardware adds evidence about that particular configuration. None automatically supplies every environmental or mission-level result. Keep the claim aligned with the setup.
Imagine a classroom adapter that passes three arithmetic cases but reverses two message fields on the connected board. Preserve the arithmetic passes and add the failing integration case. Fixing the interface should be followed by checks of the affected data path, including a normal input and the input that exposed the error. A useful report explains exactly which layer failed.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.