A ground station pass is a strange kind of meeting. It starts when your satellite rises over the horizon and ends when it sets, usually eight to twelve minutes later. You can't move it. You can only choose which antenna listens.
When we had six customers, a greedy scheduler was fine. At 180 satellites it started leaving passes on the table. This post walks through what we replaced it with.
The problem, stated plainly
Each day we get a list of candidate passes: every moment any customer satellite is in view of any of our stations. A single pass might be visible from three antennas at once. We have to pick at most one antenna per pass, and no antenna can do two things at the same time.
- Every pass has a value: how much data it carries and how much the customer needs it.
- Antennas need a few minutes between passes to slew and reconfigure.
- Some passes are mandatory, like a satellite's first contact after launch.
Why greedy stopped working
The old scheduler took passes in time order and grabbed the first free antenna. It never looked ahead, so an early, low-value pass could block a high-value one an hour later.
The best antenna for a pass is the one nobody else needs in the next twenty minutes.
What we built instead
We model the day as a graph and solve it as a weighted interval problem per antenna, then stitch the answers together. The core call looks like this:
plan = solver.place(
passes=candidates,
antennas=network.available(day),
slew_buffer=180, # seconds
)
It runs in under two seconds for a full day, so we can rerun it every time a forecast changes.
When the weather fights back
Rain fades X-band and Ka-band signals. We pull forecasts every 15 minutes and rerun the plan for the next six hours. If a pass is at risk, it moves to a drier station and the customer gets a webhook with the new time. Most never notice.