> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valar.space/llms.txt
> Use this file to discover all available pages before exploring further.

# SMA Maintenance

> Maintain semi-major axis within a tolerance band using automated maneuver planning

> For the complete documentation index, see [llms.txt](https://docs.valar.space/llms.txt).

SMA (Semi-Major Axis) Maintenance is a station-keeping algorithm that computes a sequence of maneuvers to keep a spacecraft's semi-major axis within a defined tolerance band. It corrects for natural orbital decay caused by atmospheric drag, gravitational perturbations, and other forces.

This page documents the SMA-specific configuration. For the shared wizard steps (Overview, Initial State, Time Range, Review) and general Planner functionality, see the [Planner overview](https://docs.valar.space/features/planner.md).

## SMA maintenance in Flight Plan

When Flight Plan is available for your account, select a spacecraft and **Add phase**.
Choose **Maintenance** to open **Create phase**. Enter the phase name and select
configured propulsion in the separate top cards. Under **Requirements**, choose
**SMA**, then enter **Target mean SMA** in km and **Allowed deviation ±** in m.
The same modal also supports Inclination, Local time, Ground track, and Ground
track + local time; only the selected setup's fields appear.

Under **Period**, select existing start and completion waypoints or define distinct
ones. Date and time use UTC. A relative completion uses a positive duration;
changing Seconds, Minutes, Hours or Days preserves the elapsed time. **Edit waypoint**
opens the complete editor; shared timing changes identify their affected
relationships before confirmation. These edits stay in the phase draft until
**Create phase** or **Save changes** succeeds.

Reopen **Phase overview → Edit section** to edit the saved phase. Source provenance
is available under **Reference details**. Invalid fields and incompatible targets
retain your input; failed or conflicting saves retain the captured draft. Cancel
or close asks before discarding unsaved changes. Saving the phase does not start
a calculation. The selected hardware determines the supported chemical/electric
method; changing it may require reviewing the target's mean-element convention.

Choose **Compute maneuver plan** and supply an explicit UTC planning window.
The request uses the saved phase revision and the existing operational starting
orbit. Review progress or a reported failure, then open the resulting proposal under
**Maneuver plans**. Review its retained inputs, planned burns, timing, consumption
and **SMA Analysis**. Approve or reject using the existing permitted actions.

Open approved burns under **Burns & analysis** to review the stored record and available
[OD evidence](https://docs.valar.space/features/burn-plan.md#review-records-in-flight-plan) in the same workspace.
Later phase edits affect future computations; earlier proposals retain their original
revision and inputs. Approval and elapsed dates do not confirm execution.

This workflow uses the chemical and electric SMA maintenance algorithms and their
parameter semantics. Osculating is retired for new computations; historical results
remain available. Standalone Planner also derives the algorithm from its selected
thruster. Its configuration is described below.

## Step 4: SMA Parameters

Configure the target semi-major axis and tolerance band for the maintenance algorithm.

![Planner Step4 Sma Parameters](https://mintcdn.com/valar-8bbb18b5/6vb3axcORVXT2Ny4/images/planner-step4-sma-parameters.png?fit=max\&auto=format\&n=6vb3axcORVXT2Ny4\&q=85\&s=7336a19524fa8e31fb93918e818731eb)

| Field | Description | Unit | Constraints |
| - | - | - | - |
| **Nominal SMA** | Target semi-major axis value | km | Must be > 6,371 km (Earth's radius). Auto-populated from the spacecraft's current orbit. Up to 3 decimal places. |
| **Threshold SMA** | Tolerance band around the nominal value | km | Must be > 0. Default: 10 km. Up to 3 decimal places. |

The optimizer will compute maneuvers to keep the semi-major axis within **Nominal ± Threshold** km.

### SMA Plot

Below the input fields, a real-time plot shows the spacecraft's semi-major axis over the configured time range. The plot displays:

* **Spacecraft SMA** — the osculating semi-major axis line
* **Nominal line** — solid gray reference at the target value
* **Threshold lines** — dashed red lines at upper and lower bounds
* **Tolerance zone** — shaded area between the threshold lines

The plot updates as you change the nominal and threshold values.

A reference-frame indicator badge appears next to the plot title showing the inertial frame the semi-major axis is computed in (e.g., `GCRF`). Hover the badge for the full frame name; click **Learn more** to open the [reference frame catalog](https://docs.valar.space/platform-overview/reference-frames.md). The badge also appears on the Inclination and Keplerian-element charts elsewhere in the SMA Maintenance planner views — they all share the same propagation frame.

### Auto-Population

When a spacecraft is selected, the **Nominal SMA** field is automatically populated with the spacecraft's current semi-major axis value (extracted from the latest Keplerian elements). You can override this value manually if needed.

## Analysis Tab

When viewing an SMA Maintenance plan in the details panel, the **Analysis** tab displays a chart showing how the computed maneuvers maintain the semi-major axis within the tolerance band (visible in the [Planner page screenshot](https://docs.valar.space/features/planner.md#page-layout)).

The chart shows:

* **Osculating SMA** — the spacecraft's semi-major axis over the plan time range, including the effects of each computed maneuver
* **Nominal reference** — solid line at the target SMA value
* **Threshold bounds** — upper and lower bounds with shaded tolerance zone

The Analysis chart carries the same [reference-frame indicator badge](#sma-plot) as the wizard-step preview — the propagated SMA is expressed against the same inertial frame.

This visualization confirms that the optimizer successfully keeps the SMA within the defined tolerance band throughout the plan duration.

## Key Concepts

### Tolerance Band

The range **\[Nominal SMA - Threshold, Nominal SMA + Threshold]** defines the acceptable operating window. When the spacecraft's SMA drifts toward a threshold boundary, the optimizer schedules a corrective maneuver to push it back toward the nominal value.

### Semi-Major Axis

The semi-major axis defines the size of an orbit — it is half the longest diameter of the orbital ellipse. For a circular orbit, it equals the orbital radius. For more details, see [Core Concepts](https://docs.valar.space/platform-overview/core-concepts.md).

## Related Pages

* [Planner](https://docs.valar.space/features/planner.md) — Planner overview, shared wizard steps, and plan details
* [Burn Plan](https://docs.valar.space/features/burn-plan.md) — View and manage individual spacecraft maneuvers
* [Core Concepts](https://docs.valar.space/platform-overview/core-concepts.md) — Foundational orbital mechanics concepts


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.