Course contentsShow

Module 04 · Lesson 4

Flight Software and How Subsystems Interact

Flight software runs the spacecraft when nobody is watching, and protects it when something fails. This lesson explains what it does, why it is constrained, and how the subsystems depend on one another.

6 minute readUpdated November 23, 2026

Learning objectives

After this lesson you will be able to:

  • Describe what flight software does, including fault detection and safe mode
  • Explain why flight software runs on limited processors and is rarely updated
  • Trace how one activity on a spacecraft affects power, temperature, pointing and data together

The software that flies the spacecraft

Flight software runs on the onboard computer and operates the spacecraft from moment to moment. Its jobs include:

  • receiving and checking commands, and running stored ones at their scheduled times
  • collecting telemetry and storing it for the next contact
  • running the control loops that hold the spacecraft's pointing, switch its heaters and charge its batteries
  • operating the payload and managing data storage
  • watching for faults and responding to them

Much of this is real-time work. A pointing control loop that misses its deadline can lose control of the spacecraft, so predictable timing matters more than raw speed.

Autonomy, fault detection and safe mode

A satellite in low orbit may be in contact with its operators for only a few minutes, several times a day. A spacecraft at Mars is so far away that a radio signal takes between about 3 and 22 minutes to arrive. Neither can wait for a person to notice a problem. The spacecraft has to look after itself.

This is the job of fault detection, isolation and recovery.

  • Detection. The software continually compares measurements with expected limits: a battery voltage that is too low, a temperature that is too high, a wheel speed that does not match what was commanded.
  • Isolation. It identifies the unit at fault and switches it off.
  • Recovery. It switches to a backup unit if there is one, or reduces the spacecraft's activity.

A watchdog timer guards the software itself. It is a hardware timer that the software must reset at regular intervals. If the software hangs, the timer runs out and restarts the computer.

When a fault cannot be resolved on board, the spacecraft enters safe mode. The payload and other non-essential equipment are switched off. The spacecraft turns its solar arrays toward the Sun using its simplest sensors. Heaters keep equipment within limits, and the radio listens for commands through a wide-coverage antenna. The aim is to stay powered, at a safe temperature and reachable for as long as the ground needs to diagnose the problem. Safe mode interrupts the mission, but it is a designed feature doing its job, not a failure.

Why flight software is constrained

Processors. Radiation in space can flip a bit in memory, an event called a single-event upset, or damage a chip permanently. Processors built to tolerate this are made in small numbers using older, more robust manufacturing methods, and they are far less capable than commercial chips of the same year. Memory is usually protected by codes that detect and correct errors. Some newer small satellites use commercial processors and manage the risk in other ways.

Updates. Software can be changed in orbit, but the upload is slow, and a faulty update could leave the spacecraft unreachable. Updates are therefore rare and are rehearsed first on a ground copy of the flight hardware. The spacecraft normally keeps a known good version to fall back on.

No hands-on access. Nobody can attach a debugger. The only evidence of a problem is the telemetry the spacecraft happened to record.

For software engineers arriving from other fields, the closest comparison is safety-critical embedded software in cars, aircraft or medical devices, not web or mobile development.

How the subsystems depend on one another

No subsystem works alone, and much of what flight software and mission planners do is manage the links between them.

  • Pointing affects power. Turning the spacecraft to aim a camera or antenna tilts the solar arrays away from the Sun, unless the arrays can rotate separately. Less power comes in, and the battery makes up the difference.
  • Pointing affects temperature. A new orientation puts sunlight on different surfaces. A radiator that normally faces cold space may turn toward the Sun or the warm Earth and stop shedding heat. Star trackers cannot work with the Sun in view. Some orientations are therefore forbidden, or allowed only briefly.
  • Eclipse links power and thermal control. In shadow the arrays produce nothing, temperatures fall and heaters switch on, adding load when only the battery is available.
  • Communications competes with everything. The transmitter is a large consumer of power and a source of heat, and a downlink may require the spacecraft to point away from its target.

A practical example: one radar image

A radar imaging satellite is asked to image a port. A radar provides its own illumination by transmitting radio pulses, so it is power-hungry. On many radar satellites it draws several times more power while imaging than the solar arrays generate.

SubsystemWhat the image demands
Attitude controlThe reaction wheels turn the spacecraft to aim the radar, and the arrays move off the Sun
PowerFor the minutes of imaging, the battery supplies most of the radar's power
Thermal controlMost of that energy becomes heat in the radar's electronics, which then need time to cool
Data handlingThe radar produces many gigabytes of data, which fill onboard storage
CommunicationsThe data is sent down at a later pass, using more power and another turn

The result is a duty cycle. The radar can operate for only a small fraction of each orbit. After an image, the battery must recharge, the electronics must cool and the memory must be emptied before the next one can be taken.

Planning software on the ground models power, temperature and storage before any command is sent, and the flight software enforces the limits on board by refusing or cutting short an operation that would drain the battery too far. A request that sounds simple to a customer, such as two more images on the same orbit, may be impossible for reasons that have nothing to do with the radar itself.

That completes the tour of the spacecraft. The next module turns to where it flies: what an orbit is, why satellites stay up, and why different missions choose different orbits.

Key takeaways

  • Flight software operates the spacecraft from moment to moment, because the ground is usually out of contact.
  • When the software detects a fault it cannot resolve, it puts the spacecraft into safe mode - powered, at a safe temperature and able to receive commands - and waits for the ground.
  • Radiation-tolerant processors are much less capable than commercial ones, and updates in orbit are slow and risky, so flight software is kept simple and tested heavily.
  • Every activity touches several subsystems at once, so operations are planned around power, thermal, pointing and data limits together.

Knowledge check

Check your understanding. These questions are not graded and you can retry as often as you like.

Question 1 of 3· Select one answerWhich statement best describes safe mode?
Question 2 of 3· Select all that applyWhy is flight software more constrained than typical software on the ground? Select all that apply.
Question 3 of 3· Select one answerOperators switch on a power-hungry payload for several minutes. Which combination of effects should they expect?

0 of 3 questions answered.

Glossary

Flight software

The software that runs on a spacecraft's onboard computer and controls the spacecraft from moment to moment.

Safe mode

A minimal, protective state that a spacecraft enters after a serious fault, in which it keeps itself powered, thermally safe and in contact while waiting for instructions.

Fault detection, isolation and recovery

The onboard functions that notice a problem, identify and shut off the faulty unit, and restore a working configuration. Often abbreviated FDIR.

Watchdog timer

A hardware timer that restarts the onboard computer if the software fails to reset it at regular intervals.

Single-event upset

A change in a stored bit of data caused by a single particle of radiation striking a memory or logic circuit.

Duty cycle

The fraction of time that a piece of equipment can be operating, as limited by power, heat or other constraints.

References and further reading

Finished this lesson?

Loading your progress…

Lesson version 1.0.0.