Lesson 3 of 6 · Real-time decisions
Understand why some decisions must happen onboard
8 minute lesson · 3 checks along the way
Your goal for this lessonTreat timing as part of a correct result.
In this lesson 3 sections · 3 checks
Using archive links & definitions
Words with a dotted underline open a short definition right here in the lesson.
Read & understand
A correct answer can arrive too late
A real-time task has a timing requirement tied to the physical process. A navigation answer arriving after a maneuver decision can be mathematically sound yet operationally useless. The relevant measure is whether the entire sensing, computation and action chain meets its required deadline.
Perseverance used terrain-relative navigation during its 2021 Mars landing. Onboard images were compared with stored terrain information to help determine position and choose a reachable landing target. The short descent sequence and communication delay made waiting for an Earth-based decision unsuitable for those immediate actions.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Add the whole latency
Consider a fictional 100-millisecond deadline. Acquisition takes 20 ms, processing 50 ms and output delivery 10 ms, totaling 80 ms and leaving 20 ms before the deadline. If competing work adds a 30-ms wait, the total becomes 110 ms and misses the requirement.
This is a teaching budget, not a rover specification. It shows why measuring an isolated algorithm’s average speed is insufficient. Worst-case workload, communication between onboard components and time spent waiting for shared resources can determine whether the deadline is met.
Time the whole chain: fictional budget
Original teaching diagram. Normal sequence. 20 + 50 + 10 = 80 ms. Deadline: 100 ms. Added queue delay. 80 + 30 = 110 ms. Deadline missed by 10 ms. Acquisition, waiting, computation and output all contribute to response time.
Open full-size diagram in a new tab: Time the whole chain: fictional budgetCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Define what happens without a usable answer
A real-time design should specify the response to missing, stale or low-quality input and to a missed deadline. The appropriate fallback depends on the mission phase. Waiting can be reasonable for a parked rover but may be impossible during an irreversible descent sequence.
Evaluate the response in representative scenarios, including interactions with other tasks. A claim that an algorithm is fast enough needs a defined workload and timing evidence. A claim that it is autonomous needs a defined decision scope; neither adjective by itself establishes suitability for the physical operation.
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.
- Read: NASA: demonstrated terrain-relative navigationCompare the explanation and its assumptions with the worked example in this lesson.
- Read: JPL: Mars 2020 landing sequence and onboard decisionsCompare the explanation and its assumptions with the worked example in this lesson.
- Read: NASA software handbook: software testingCompare the explanation and its assumptions with the worked example in this lesson.