Satellite attitude control (ADCS)

ADCS loop: Sun sensor, magnetometer, gyroscope and star tracker feed measurements to attitude determination; the controller compares the estimated attitude with the commanded attitude and drives reaction wheels, magnetorquers and thrusters; their torque rotates the spacecraft body, and the sensors measure again
Download SVG
Embed

Copy this HTML to use the diagram on your site (CC BY 4.0, keep the credit line):

<figure><img src="https://cosmicaxis.space/img/dieu-khien-tu-the-ve-tinh-en.svg" alt="ADCS loop: Sun sensor, magnetometer, gyroscope and star tracker feed measurements to attitude determination; the controller compares the estimated attitude with the commanded attitude and drives reaction wheels, magnetorquers and thrusters; their torque rotates the spacecraft body, and the sensors measure again" width="600" height="540"><figcaption>Source: <a href="https://cosmicaxis.space/en/satellite-attitude-control/">CosmicAxis</a> · CC BY 4.0 · Based on: NASA State-of-the-Art of Small Spacecraft Technology 2026, chapter 5</figcaption></figure>
Source

NASA State-of-the-Art of Small Spacecraft Technology 2026, chapter 5

ADCS (attitude determination and control system) finds and controls a satellite's orientation: sensors measure direction, a computer estimates attitude, then reaction wheels, magnetorquers or thrusters rotate the spacecraft. NASA lists the XACT-15 CubeSat ADCS at 0.885 kg with 0.003° pointing accuracy (NASA SOA 2026).

01Knowledge

What does an ADCS consist of?

An ADCS has two halves: attitude determination estimates where the satellite points, and attitude control produces the torque that turns it to the commanded direction. Attitude is usually stored as a quaternion.

Per chapter 5 of NASA’s State-of-the-Art of Small Spacecraft Technology 2026 (NASA SOA), an ADCS is sensors, actuators and software running a measure, estimate, control loop several times per second, typically as periodic tasks on an RTOS.

Solar panels, cameras and directional antennas must all face the right way (the link budget article has a 3.5° beam example). The ADCS is one of the six subsystems of a CubeSat; Blue Canyon’s XACT-15 packs sensors and actuators into 0.885 kg (NASA SOA, Table 5-2).

How accurate are Sun sensors, magnetometers, gyros and star trackers?

A star tracker is the most accurate, near 8 arcseconds; Sun sensors and magnetometers are hundreds of times coarser but cheap, light and always have a signal.

Sensor Measures Typical accuracy Source, date accessed
Cosine Sun sensor Sun direction ±2° to ±5° NASA SOA Table 5-7, 2026-10-02
3-axis magnetometer Magnetic field vector Resolution 1.18–25 nT NASA SOA Table 5-6, 2026-10-02
Gyroscope (IMU) Angular rate Bias 0.15 °/h NASA SOA Table 5-1, 2026-10-02
Star tracker 3-axis attitude 8″ (arcseconds) NASA SOA Table 5-1, 2026-10-02

One measured vector, such as the Sun direction, fixes only 2 axes, because the satellite can still rotate about it. Two independent vectors (Sun and magnetic field) let TRIAD or QUEST give all 3 axes (NASA SOA, section 5.2.6).

A gyroscope measures rate, not direction, so an integrated angle drifts. A star tracker does not drift but loses lock when the satellite spins fast: cheap units track up to 0.3 °/s, expensive ones up to 3.0 °/s (NASA SOA, section 5.2.5). Precise-pointing missions therefore run a Kalman filter to blend both. MEMS gyros also suffer bit flips from space radiation (NASA SOA).

How do reaction wheels, magnetorquers and thrusters differ?

Wheels exchange angular momentum inside the satellite, magnetorquers push against Earth’s magnetic field, and thrusters expel gas outward.

  • Reaction wheel: the wheel speeds up one way and the body turns the other way. Small-satellite wheels give 0.00023–0.3 N·m and store 0.0005–8 N·m·s (NASA SOA, Table 5-1); the RWp015 weighs 0.130 kg, gives 0.004 N·m and stores 0.015 N·m·s (Table 5-3). With 4 skewed wheels, losing one still leaves 3-axis control.
  • Magnetorquer: current in a coil makes a dipole m, giving torque τ = m × B (NASA SP-8018, Eq. 4-1). The torque is always perpendicular to B, so magnetorquers alone usually cannot hold 3 axes. ISISPACE’s 3-axis torque board gives 0.20 A·m² (NASA SOA, Table 5-4).
  • Thruster: large torque in any orbit, but it burns propellant.

CosmicAxis calculation: at 420 km over the magnetic equator, the dipole field from WMM2025 is 24,236 nT, so a 0.2 A·m² coil gives at most 4.8 × 10⁻⁶ N·m, about 825 times less than the RWp015. Magnetorquers therefore do slow jobs (detumbling, momentum dumping); wheels do fast, precise ones.

What are gravity-gradient and permanent-magnet passive stabilization?

Passive stabilization holds orientation with no electric power: gravity gradient pulls the long axis toward the vertical, a permanent magnet pulls one axis along the field lines. The price is low accuracy and no choice of direction.

  • Gravity gradient: the part nearer Earth is pulled harder. By NASA SP-8024 (Table II), the pitch torque is τ = −(3/2) · ω₀² · (I_x − I_z) · sin 2θ, where ω₀ is the orbital rate, I the moments of inertia and θ the offset angle. To stabilize this way, increase the inertia difference, for example with a long boom.
  • Permanent magnet: per NASA SP-8018, Transit 1B used a permanent magnetic dipole to hold its symmetry axis along the local field. The field also brakes spin: Vanguard I spun at 2.7 rev/s at launch and under 0.2 rev/s after 2 years.

CosmicAxis calculation, for a 4 kg 3U CubeSat at 420 km, as a solid box (I_x = 0.042 kg·m², I_z = 0.0067 kg·m²): a 10° offset gives only 2.3 × 10⁻⁸ N·m, about 200 times less than a 0.2 A·m² magnetorquer.

How does B-dot detumbling work?

The B-dot law makes a magnetorquer set its dipole opposite to the rate of change of the field measured in the body frame, m = −k · dB/dt, so the torque always opposes rotation. It is usually credited to Stickler and Alfriend (1976) and needs only a magnetometer.

Per NASA SOA, a satellite leaving its deployer usually gets some angular momentum (tip-off) and tumbles, before the star tracker can find stars.

Why it brakes: at angular rate ω, the nearly fixed field appears to rotate backward in the body frame, dB/dt ≈ −ω × B. With τ = m × B, the torque power is ω · τ = −k · |ω × B|², never positive (derived by CosmicAxis). Rotation parallel to B is briefly undamped, but B changes direction along the orbit, so every axis gets damped in turn.

What is reaction wheel saturation, and how is momentum dumped?

A wheel saturates when it reaches maximum speed: per NASA SOA (section 5.2.2), it can then make no more torque and store no more angular momentum about that axis.

Wheels only trade angular momentum with the body, never changing the total, while disturbance torques (gravity gradient, residual magnetic moment, solar radiation pressure) add to it. Momentum dumping applies an opposing external torque with magnetorquers or thrusters, so the wheels slow while the body keeps pointing.

  • Small satellites around Earth dump mainly with magnetorquers, which needs an accurate field model (NASA SOA).
  • Dumping with thrusters disturbs the orbit: Mars Climate Orbiter was lost because the impulse of its dumps was recorded in the wrong units, a lesson in systems engineering that starts at the ADCS.

02Practice

How do you simulate B-dot detumbling of a 3U CubeSat in Python?

This simulation brakes a 3U CubeSat from 11.18 °/s to under 0.5 °/s in 50 minutes using only a magnetometer and 3 magnetorquers of 0.2 A·m² (CosmicAxis calculation).

B-dot detumbling of a 3U CubeSat, angular rate over time: 11.18 °/s at separation, 1.57 °/s after 30 minutes, under 0.5 °/s after 50 minutes, then oscillating near 0.13 °/s
Source

CosmicAxis calculation; NOAA WMM2025

Assumptions: circular 420 km orbit, 51.6° inclination; axial dipole field, g₁⁰ = −29,351.8 nT (WMM2025, NOAA); solid 4 kg box; initial spin rate assumed.

import math

MU, RE, B0 = 3.986004418e14, 6371.2e3, 29351.8e-9   # m³/s², m, T
R, INC = RE + 420e3, math.radians(51.6)
N = math.sqrt(MU / R**3)                            # orbital rate, rad/s
I = (0.042, 0.042, 0.0067)                          # kg·m²
M_MAX, K, DT = 0.2, 2e5, 0.1                        # A·m² per axis, gain, s

def cross(a, b):
    return (a[1]*b[2]-a[2]*b[1], a[2]*b[0]-a[0]*b[2], a[0]*b[1]-a[1]*b[0])

def b_eci(t):                       # axial dipole, moment pointing south
    u = N * t
    r = (math.cos(u), math.sin(u)*math.cos(INC), math.sin(u)*math.sin(INC))
    return [-B0 * (RE/R)**3 * (3*r[2]*r[i] - (i == 2)) for i in range(3)]

def to_body(q, v):                  # rotate an ECI vector into the body frame
    u = (-q[1], -q[2], -q[3])
    t = [2*c for c in cross(u, v)]
    return [v[i] + q[0]*t[i] + cross(u, t)[i] for i in range(3)]

def w_dot(w, tau):                  # I·ω̇ = τ − ω × Iω
    g = cross(w, [I[i]*w[i] for i in range(3)])
    return [(tau[i] - g[i]) / I[i] for i in range(3)]

def rk4(w, tau):
    k1 = w_dot(w, tau)
    k2 = w_dot([w[i] + DT/2*k1[i] for i in range(3)], tau)
    k3 = w_dot([w[i] + DT/2*k2[i] for i in range(3)], tau)
    k4 = w_dot([w[i] + DT*k3[i] for i in range(3)], tau)
    return [w[i] + DT/6*(k1[i]+2*k2[i]+2*k3[i]+k4[i]) for i in range(3)]

q, w = [1, 0, 0, 0], [math.radians(d) for d in (8, -6, 5)]   # assumed spin, rad/s
b_cu = to_body(q, b_eci(0))
for n in range(int(3 * 3600 / DT) + 1):
    if n % int(1800 / DT) == 0:
        print(f"{n*DT/60:4.0f} min  |ω| = {math.degrees(math.hypot(*w)):5.2f} °/s")
    b = to_body(q, b_eci(n * DT))                         # magnetometer
    m = [max(-M_MAX, min(M_MAX, -K*(b[i]-b_cu[i])/DT)) for i in range(3)]
    b_cu, w = b, rk4(w, cross(m, b))                      # τ = m × B
    a, x, y, z = q                                        # q̇ = ½ q ⊗ (0, ω)
    q = [a - DT/2*(x*w[0]+y*w[1]+z*w[2]), x + DT/2*(a*w[0]+y*w[2]-z*w[1]),
         y + DT/2*(a*w[1]+z*w[0]-x*w[2]), z + DT/2*(a*w[2]+x*w[1]-y*w[0])]
    q = [c / math.hypot(*q) for c in q]
#    0 min  |ω| = 11.18 °/s
#   30 min  |ω| =  1.57 °/s
#   60 min  |ω| =  0.11 °/s
#   90 min  |ω| =  0.15 °/s
#  120 min  |ω| =  0.13 °/s
#  150 min  |ω| =  0.13 °/s
#  180 min  |ω| =  0.13 °/s

The output comes from Python 3.14. With K = 0, |ω| stays at 11.18 °/s for 3 hours, so the RK4 integration creates no energy. The rate settles near 0.13 °/s, almost twice the orbital rate of 0.065 °/s, because the field also rotates once per 92.8-minute orbit.

How do you size reaction wheels and magnetorquers for a 3U CubeSat?

A 0.015 N·m·s wheel and a 0.2 A·m² magnetorquer suffice for this 3U CubeSat, by three calculations (CosmicAxis calculation).

  1. At separation: H = I · ω = 0.0074 N·m·s, half the RWp015 capacity.
  2. Minimum detumble time: H divided by the maximum magnetorquer torque of 4.8 × 10⁻⁶ N·m gives 25 minutes; the simulation takes 50 because only the torque component perpendicular to B helps.
  3. 90° slew in 60 seconds (accelerate half the time, brake half): α = 4θ/t² = 0.0017 rad/s², needing 7.3 × 10⁻⁵ N·m and 0.0022 N·m·s, below the RWp015 limits of 0.004 N·m and 0.015 N·m·s.

To hold pointing, software computes torque from angle error and rate, typically with a PID controller per axis, with gains tuned in simulation first.

03Reality

How did the Kepler telescope survive losing 2 reaction wheels as the K2 mission?

NASA’s Kepler telescope had 4 reaction wheels and needed at least 3 for precise pointing; one failed in July 2012 and wheel 4 in May 2013, which ended the original mission (NASA).

The team turned solar radiation pressure, the only disturbance torque, into a support: pointing in the orbital plane balances sunlight on both sides of the body, so roll torque is nearly zero (Howell et al., 2014).

  • The 2 remaining wheels hold the Y and Z axes; thrusters correct X-axis roll drift every 12 hours.
  • Wheel momentum is dumped with thrusters every 2 days; propellant was enough for 2–3 years.
  • Each sky field can be observed about 75 days, because of the sun-angle limit.

K2 began collecting data on May 30, 2014. On October 30, 2018 NASA retired Kepler for lack of fuel, after it found more than 2,600 exoplanets. Without wheels, propellant for momentum dumping sets the lifetime.

04Milestone

Milestone: check yourself

If you can do all of these, move on to the next article in this phase.

  • Can you explain why one Sun sensor cannot give full 3-axis attitude?
  • Can you compute the maximum torque of a 0.2 A·m² magnetorquer in a 24,236 nT field?
  • Can you explain why B-dot settles near 0.13 °/s instead of reaching zero?
  • Can you retell why Kepler kept doing science until 2018 after losing 2 reaction wheels?

Frequently asked questions

What is a reaction wheel?

A reaction wheel is a motor-driven wheel: spinning it up one way turns the satellite the opposite way. The Blue Canyon RWp015 weighs 0.130 kg and stores 0.015 N·m·s (NASA SOA 2026).

What is a magnetorquer?

A magnetorquer is a coil that makes a magnetic dipole m; with Earth's field B it produces torque τ = m × B. Small-satellite magnetorquers give 0.15–15 A·m² (NASA SOA 2026).

What is a star tracker?

A star tracker is a camera that images the sky and matches the stars to an onboard catalog to get 3-axis attitude, with an error near 8 arcseconds on small satellites (NASA SOA 2026).

References

  1. NASA — State-of-the-Art of Small Spacecraft Technology 2026, chapter 5 GNC — accessed
  2. NASA SP-8024 — Spacecraft Gravitational Torques, 1969 — accessed
  3. NASA SP-8018 — Spacecraft Magnetic Torques, 1969 — accessed
  4. NOAA NCEI — World Magnetic Model 2025 — accessed
  5. Stickler and Alfriend — Elementary Magnetic Attitude Control System, 1976 — accessed
  6. NASA — Kepler / K2 In Depth — accessed
  7. Howell et al. — The K2 Mission, PASP 126:398, 2014 — accessed

Cite this article

CosmicAxis. (2026). Satellite attitude control: ADCS, reaction wheels, B-dot. https://cosmicaxis.space/en/satellite-attitude-control/