Module 08 · Lesson 3
Plan Validation and Execution
A schedule becomes real only when it is expanded into commands, validated, approved, uploaded and compared with what the spacecraft did. This lesson follows that path and its limits.
Learning objectives
After this lesson you will be able to:
- Describe how planned activities are expanded into commands and stored sequences
- Explain the layers of validation applied before uplink and why independence between them matters
- Compare the planning cycle with a software deployment pipeline and identify where the comparison fails
A schedule is not yet a plan
The scheduler from the previous lesson produces a list of activities with start times. The spacecraft understands none of it. This lesson follows the path from schedule to spacecraft and back.
Turning a plan into commands
Each scheduled activity is converted into commands, a step called activity expansion. One line of schedule, "image target 4417 at 10:42:10 for 20 seconds," might expand into a dozen time-tagged commands: start the slew early enough to arrive and settle, warm up and configure the instrument, start and stop recording, and return to standby.
Expansion is done by templates that are themselves controlled and tested, using the telemetry and command database from Module 7.
The result is a command load: the time-tagged commands and stored sequences for a fixed period, commonly a day or a few days.
Validation before uplink
A plan is validated after expansion, because the expanded commands are what will run. Validation comes in layers, from cheap to expensive.
Database checks. Every command exists in the current database version, every argument is in range, and time tags are in order and inside the load's validity period.
Constraint and flight rule checks. The expanded timeline is run through models of power, storage, thermal behavior and pointing, as in the first lesson of this module. It is also checked against flight rules: documented operating rules, each with a stated rationale. An illustrative example is "the transmitter is not switched on within 30 seconds of the instrument cover opening." Flight rules encode lessons learned and accumulate over a mission.
Simulation. Where a simulator is available, the load is run against it. A simulator that runs the real flight software catches what a rule checker cannot, such as a command rejected because of the mode the spacecraft will be in at that moment. Simulator fidelity is the subject of Module 10.
The layers are worth having only if they are independent. A validator that shares the scheduler's storage model will agree with the scheduler's mistakes, so many teams implement the checker separately.
Approval and the planning cycle
Plans are produced on a repeating planning cycle. The timings below are illustrative of a daily cycle for a low Earth orbit mission.
| Time before the load takes effect | Step |
|---|---|
| Weeks | Long-range plan fixes maneuvers, calibrations and station bookings |
| 2 days | Requests close and updated flight dynamics products arrive |
| 1 day | Scheduling, expansion and validation |
| 12 hours | Review and approval by the responsible engineers and the operations lead |
| 6 hours | Upload on a scheduled contact, with a later contact held as backup |
The cutoff exists because every later step needs time. A late change waits for the next cycle or takes an expedited path with its own rules. Approval is a recorded decision by a named person, based on the validation reports.
Upload, execution and reconciliation
Upload is verified like any command. The spacecraft confirms that the load arrived intact, often with a checksum, and the ground may read the schedule back and compare it.
Execution then proceeds on board, mostly out of contact. The flight software still applies its own checks and may reject a command that the ground believed was valid.
At later contacts the recorded telemetry comes down, and the ground builds the as-run record: which commands executed, when, and with what result. Plan reconciliation compares this with the plan. Useful questions are:
- Did every planned command execute, at the planned time?
- Did each activity produce its expected product, such as an image of the expected size?
- Did resources follow the prediction? If the battery was five percent lower than predicted at the end of every eclipse, the power model needs correcting.
Reconciliation closes the loop. Without it, model errors grow unnoticed until a margin is gone.
Replanning after anomalies
A command load assumes a spacecraft state: which units are on, where it is pointing, how much is stored. An anomaly voids the assumption. When a spacecraft enters safe mode, the stored command schedule is typically halted, because running an imaging sequence on a spacecraft that has switched off its payload would be useless at best.
The plan is not resumed afterward. Its remaining commands were validated against a predicted state that no longer exists. The team establishes the actual state from telemetry, decides when normal operations can restart, and builds a new plan from that point.
Smaller disturbances follow the same logic. After a lost contact, data stays on board longer, so the storage prediction is rerun and later imaging may be removed.
The parallel with deployment pipelines
The mapping to a software delivery pipeline is close.
| Planning cycle | Deployment pipeline |
|---|---|
| Schedule and templates under version control | Source and configuration in a repository |
| Expansion into a command load | Build producing a release artifact |
| Rule checks and simulation | Automated tests and a staging environment |
| Approval | Change review and release sign-off |
| Upload on a contact | Deployment |
| Reconciliation | Monitoring and post-release review |
The comparison breaks down in four places.
- No rollback. A load acts on physical state. Propellant spent and battery charge used cannot be restored by reverting a version.
- Delayed feedback. Results are often seen hours later, at the next contact, not in seconds.
- Fixed release times. Uploads happen when orbital geometry provides a contact, not when the team is ready.
- No gradual rollout on one spacecraft. A single spacecraft is the whole of production. Constellations can and do try changes on a few spacecraft first.
A practical example: a slew that crossed the Sun
A planning team adds a new target type to an imaging satellite's schedule. The telescope has a flight rule that the Sun must stay more than 30 degrees from its axis.
The scheduler checks the rule at the start and end of each activity. For one pair of consecutive targets, both pointing directions satisfy the rule comfortably. The load passes the rule checker, which makes the same two checks.
The simulator run flags it. The attitude control software takes the shortest rotation between the two directions, and that path sweeps the telescope axis to within 12 degrees of the Sun for several seconds. Neither endpoint is a problem. The path between them is.
The fix has three parts. An intermediate attitude takes the slew around the keep-out zone. The rule checker now samples the pointing direction along each slew, using its own path model. The case joins the regression set for every future scheduler release.
The error was caught because the validation layers were different from each other. Two checks that share an assumption count as one.
From plans to the software that runs them
This module treated the spacecraft as something that accepts commands and reports telemetry. The next module looks inside, at how flight software and ground software are structured and at the standards that shape both.
Key takeaways
- Activities are expanded into time-tagged commands by controlled templates. The expanded command load, not the schedule, is what must be validated.
- Validation is layered - database checks, constraint and flight rule checks, and simulation where available - and is most useful when it does not share code or models with the scheduler.
- After upload, the as-run record is compared with the plan. Differences correct the models and reveal problems early.
- A plan assumes a spacecraft state. After an anomaly that assumption is void, so the plan is rebuilt from the actual state, not resumed.
Knowledge check
Check your understanding. These questions are not graded and you can retry as often as you like.
0 of 3 questions answered.
Glossary
Command load
The set of time-tagged commands and stored sequences produced from a plan and uploaded to the spacecraft for a given period.
Flight rule
A documented, approved operating rule that states what must or must not be done with the spacecraft, with the reason for it.
Activity expansion
Converting a planned activity, such as taking an image, into the ordered commands that carry it out.
Planning cycle
The repeating timeline of request cutoff, scheduling, validation, approval and upload that produces each command load.
As-run record
The reconstruction, from telemetry, of which commands and activities actually executed and when.
Plan reconciliation
Comparing the as-run record with the approved plan and explaining every difference.
References and further reading
- State-of-the-Art of Small Spacecraft Technology - Ground Data Systems and Mission Operations (opens in a new tab)NASA
- Planning and Scheduling Group (opens in a new tab)NASA Ames Research Center
- Operations (opens in a new tab)European Space Agency
Finished this lesson?
Loading your progress…
Lesson version 1.0.0.