Flight Software

Flight Software

Configuration, autonomy and failure behaviour treated as engineering artefacts: versioned, reviewable and testable before they fly.

Flight software stack on a UAV Onboard sensors, the inertial unit, GPS and barometer and magnetometer, feed a flight controller running PX4 or ArduPilot, which drives the aircraft actuators. The configuration is versioned, reviewed and tested before it flies. UAV airframe SENSORS IMU GPS Baro / Mag Flight controller PX4 / ArduPilot state estimate, control loop Actuators motors, servos versioned · reviewed · tested before it flies
Avionics stack. Scroll to separate.

Configuration and build provenance

Trim

The requirement

Operators running PX4 or ArduPilot across several airframe types need to know which firmware and parameter set is on which aircraft, and to prove the build flying today is the build that was tested.

Why it is hard

Parameters live in spreadsheets and operator memory. A tuning change made on a customer's flight line rarely returns to the baseline. After an incident, reconstructing the exact airborne configuration is often impossible, which is when it matters most.

How Trim solves it

Configuration as versioned data rather than files. Every parameter set is signed against a firmware hash and airframe identity, differences between any two aircraft render side by side, and field changes sync back on reconnection.

Representative scenario

The kind of fleet where individual aircraft silently diverge from baseline tuning after field servicing, surfaced by routine comparison rather than by an incident.

Trim: configuration with provenance Conceptual schematic

Trim versions every parameter set, signs it against firmware and airframe, and diffs aircraft A parameter set box, signed against a firmware hash and bound to an airframe identity, feeds a version chain v1 to v3. The chain feeds a side-by-side comparison of Aircraft A and Aircraft B with one differing row highlighted. A return path shows field changes syncing back on reconnection. Parameter setversioned data, not a filesigned: firmware hashbound: airframe identityevery change is a new versionv1v2v3historyany two versions diff side by sideAircraft A vs Aircraft BparameterABrate gainssamesamefailsafe actionsamesamecruise throttlebaselinechangedgeofencesamesamefield change syncs back on reconnection
Which build is on which aircraft, provably. Each parameter set is signed against a firmware hash and airframe identity, every change is a version, and any two aircraft diff side by side so silent drift is visible before an incident.
Scenario surface.

Autonomy and mission behaviour

Waypoint

The requirement

Search patterns, contingency behaviour, payload triggering and geofence responses have to be authored, reviewed and tested as engineering artefacts.

Why it is hard

Autonomy behaviour is usually expressed as flight-controller parameters and scattered scripts. It cannot be reviewed by anyone who is not already an expert in that stack, cannot be diffed between revisions, and cannot be tested except by flying it.

How Waypoint solves it

Behaviours are authored as explicit state machines with declared transitions and preconditions, versioned like code and reviewable by an engineer who does not know the underlying autopilot. Each compiles to the target stack and runs unchanged inside Crosswind.

Representative scenario

The kind of BVLOS corridor operation where link-loss behaviour is validated across many simulated failure points, including timing windows flight testing would be unlikely to reach.

Waypoint: behaviour as a state machine Conceptual schematic

Waypoint authors autonomy as explicit states with declared transitions Four states run left to right: nominal mission, loiter, return to launch, land. Each transition carries a trigger and a precondition. A geofence breach state can enter return to launch from any state. Below, the state machine compiles to PX4 or ArduPilot and runs unchanged inside Crosswind. Nominal missionLoiterReturn to launchLandlink lostif in flighthold timed outif no linkover homeif at altitudeGeofence breachfrom any stateCompiles to the target stack: PX4, ArduPilotRuns unchanged inside Crosswind before it fliesdeclared transitions and preconditions, reviewable by an engineer who does not know the autopilot
Behaviour you can read, diff and test. Contingencies are explicit states with declared transitions and preconditions, versioned like code, compiled to the autopilot and exercised in simulation before anyone flies them.
Airframe systems. Scroll to separate.

Fault detection, isolation and recovery

Failsafe

The requirement

Aircraft must detect faults, decide what they mean and act, with reasoning demonstrable to a regulator.

Why it is hard

Failsafe logic accretes. A response is added after each incident until nobody can state what the aircraft will do given two simultaneous faults. Interaction between failsafes is rarely analysed and almost never tested.

How Failsafe solves it

An explicit fault tree with detection, isolation and recovery as separate declared stages. Combinations are enumerated automatically and exercised in simulation, and the analysis exports in a form suited to a safety case.

Representative scenario

The kind of fault-interaction study that surfaces a case such as GPS-degraded plus low-battery triggering two responses that oppose each other, a case with no incident history precisely because it had never been flown.

Failsafe: detection, isolation, recovery Conceptual schematic

Failsafe separates detect, isolate and recover and enumerates fault combinations Three stages run left to right: detect, isolate, recover. Below, a triangular grid pairs three example faults, GPS degraded, low battery and link loss, with one pair highlighted as having opposing responses. The grid feeds an exercised-in-Crosswind box and then a safety case export. Detectsensor and system signalsdeclared detection logicIsolatewhich subsystem, which causedeclared, not inferredRecoverthe action and its limitsdeclared per faultGPS degraded1Low battery2Link loss3FAULT COMBINATIONS, ENUMERATEDExercised in Crosswindevery pair and triple runopposing responses surfacedSafety case exportfault tree, in a form aregulator can reviewhighlighted: GPS degraded plus low battery, two responses that oppose each other
What the aircraft does given two faults at once, stated and tested. Detection, isolation and recovery are separate declared stages; combinations are enumerated, run in simulation and exported in a form suited to a safety case.

Questions

Questions we hear early

Q

What does the Flight Software domain cover?

Configuration, autonomy and failure behaviour for unmanned aircraft, treated as engineering artefacts that are versioned, reviewed and tested before they fly.

Q

Which autopilots does Trim work with?

Trim is built for operators running PX4 or ArduPilot across several airframe types, storing each parameter set as versioned data signed against a firmware hash and airframe identity, with field changes synced back on reconnection.

Q

How is autonomy behaviour authored in Waypoint?

Behaviours are authored as explicit state machines with declared transitions and preconditions, versioned like code and reviewable by an engineer who does not know the underlying autopilot, and each compiles to the target stack and runs unchanged inside Crosswind.

Q

How does Failsafe handle combinations of faults?

Failsafe uses an explicit fault tree with detection, isolation and recovery as separate declared stages, enumerates fault combinations automatically, exercises them in simulation, and exports the analysis in a form suited to a safety case.

Talk to the engineers who built it

Tell us what you are flying and where the programme is losing time. We will tell you honestly which of these helps and which does not.

Start a conversation