Skip to content
CubeTwin

Documentation · Attitude determination and control

CubeSat attitude determination and control (ADCS) and attitude modes

Attitude is the orientation of the spacecraft in space. It decides which faces see the Sun, where the antenna and payload point, and how much heat the body absorbs. CubeTwin's L1 model prescribes the attitude by operating mode; the ADCS hardware is represented in 3D, and attitude dynamics are planned.

Implemented

  • Five kinematic attitude modes: sun-face, sun-edge, nadir, inertial, tumbling
  • One attitude quaternion per sample, shared by power, thermal and rendering
  • Safe-mode attitude switch from the EPS mode logic
  • ADCS hardware in the 3D model and component registry

Experimental

  • Tumbling as a statistical orientation average (Cauchy), not a rigid-body rotation; the renderer's rotation is illustrative

Planned

  • Rigid-body attitude dynamics, quaternion kinematics with torques (R3)
  • Reaction-wheel momentum and saturation, magnetorquer control
  • Sensor models and attitude estimation
Attitude modes
sun-face, sun-edge, nadir, inertial, tumbling
Highest orbit-average power
sun-edge, 5.43 W at β = 0° (engine)
Sun-face / nadir pointing
3.84 W / 2.11 W orbit average at β = 0° (engine)
Actuators and sensors
three reaction wheels, two magnetorquer rods and an air-core coil, sun sensors on each long face
CubeTwin platform with face normals and cos θ shown: arrows from each solar face of the CT-REF-3U CubeSat and the Sun vector, with the incidence cosine of each face.
Face normals and incidence cosines in the CubeTwin platform. Each long face produces power in proportion to cos θ between its normal and the Sun direction. Earth imagery: NASA.

Definition

The attitude determination and control system (ADCS) measures the spacecraft's orientation with sensors and changes it with actuators. Attitude is described by a rotation from the body frame to an inertial frame, stored as a rotation matrix RR or a unit quaternion.

CubeTwin's body frame: origin at the geometric centre, +Z+Z along the 340.5 mm long axis towards the UHF antenna end cap, +X+X and +Y+Y the outward normals of two adjacent long faces, right-handed.

Engineering purpose

On a CubeSat with body-mounted cells the ADCS is also part of the power system: in the reference orbit the best Sun-pointing mode delivers 2.6 times the orbit-average power of nadir pointing (engine). The attitude chosen for science or communication therefore has a power cost that the energy budget must carry. In safe mode the spacecraft switches to a sun-safe attitude.

Hardware architecture and components

ComponentPurposeEnvelope (mm)Physical principles
Reaction wheels
adcs-reaction-wheels
Exchange angular momentum with the body to point it precisely.90 × 96 × 30Conservation of angular momentum; Rigid-body dynamics (R3)
Magnetorquers
adcs-magnetorquers
Create magnetic dipoles that react against Earth's field to detumble and desaturate wheels.70 × 10 × 10Torque τ = m × B
Sun sensors
adcs-sun-sensors
Measure the Sun direction in the body frame.10 × 10 × 3Photodiode current ∝ cos θ

Physical principles

Reaction wheels exchange angular momentum with the body (conservation of angular momentum). Magnetorquers produce a magnetic dipole m\mathbf m that experiences a torque τ=m×B\boldsymbol\tau = \mathbf m \times \mathbf B in Earth's field; they detumble the spacecraft and unload the wheels. Sun-sensor photodiodes give a current proportional to the cosine of the incidence angle. For a convex body in a uniformly random orientation, the mean projected area seen from any direction is a quarter of its total surface area (Cauchy's surface-area formula); CubeTwin uses this for the tumbling mode.

Mathematical model and units

The rotation matrix has the body axes as columns, Rb→i=[x^ y^ z^]R_{b\to i} = [\hat x\ \hat y\ \hat z], with perp⁡(a,h)=unit⁡(h−(h⋅a) a)\operatorname{perp}(\mathbf a, \mathbf h) = \operatorname{unit}(\mathbf h - (\mathbf h\cdot\mathbf a)\,\mathbf a):

Mode+X axis+Z axis+Y axis
sun-faces^\hat sperp⁡(s^,h^)\operatorname{perp}(\hat s, \hat h)z^×x^\hat z\times\hat x
sun-edge(s^−b)/2, b=z^×s^(\hat s - \mathbf b)/\sqrt2,\ \mathbf b = \hat z\times\hat sperp⁡(s^,h^)\operatorname{perp}(\hat s, \hat h)(s^+b)/2(\hat s + \mathbf b)/\sqrt2
nadir−r^-\hat rperp⁡(x^,v)\operatorname{perp}(\hat x, \mathbf v)z^×x^ (=h^)\hat z\times\hat x\ (=\hat h)
inertial[1, 0, 0][0, 0, 1][0, 1, 0]
tumblingstatisticalstatisticalstatistical
Aproj‾=Atot4⇒ck=14 for every face (tumbling)\overline{A_{proj}} = \frac{A_{tot}}{4}\quad\Rightarrow\quad c_k = \tfrac14 \text{ for every face (tumbling)}

In sun-face and sun-edge modes the roll about the Sun line puts the long axis as close to the orbit normal as possible; in nadir mode the long axis follows the velocity. When the Sun is within 10⁻⁶ rad of the orbit normal, a fallback axis is used.

SymbolMeaningUnit
Rb→iR_{b\to i}Rotation from body frame to inertial frame–
s^, h^, r^, v\hat s,\ \hat h,\ \hat r,\ \mathbf vSun direction, orbit normal, radial direction, velocity–, –, –, m/s
Atot, Aproj‾A_{tot},\ \overline{A_{proj}}Total surface area; mean projected aream²
ckc_kDirect-sun factor of face k–

System behaviour and operating conditions

Slews between modes are instantaneous: the attitude switches when the EPS enters or leaves safe mode. Orbit-average bus power at β = 0° (engine): sun-face 3.84 W, sun-edge 5.43 W, nadir 2.11 W, inertial 3.84 W, tumbling 3.84 W.

CT-REF-3U reference values (spec/parameters/reference-3u.json). Educational values, not manufacturer or flight limits.
ParameterValueSource
Attitude operations.attitudesun-faceAssumption
Safe-mode attitude operations.safeAttitudesun-faceAssumption
ADCS power, pointing loads.adcsPointing0.8 WAssumption
ADCS power, safe mode loads.adcsSafe0.5 WAssumption

Interfaces and dependencies

Inputs: position and velocity from the orbit, the Sun direction, and the mode from the EPS. Output: one attitude quaternion per sample, used by the solar array, the thermal model and the 3D renderer (which computes no attitude of its own).

FromKindInterfaceTo
Reaction wheelsDATASPI/I²COnboard Computer
Reaction wheelsPOWER5 VElectrical Power System board
MagnetorquersDATAPWM driveOnboard Computer
Sun sensorsDATAADCOnboard Computer

Failure scenarios

The kinematic model has no pointing error, slew time or wheel saturation, so ADCS faults are catalogued but not simulated. A tumbling spacecraft (for example after deployment or a control failure) can be studied as the statistical tumbling mode.

ComponentCatalogued failure modes
Reaction wheelsBearing wear; Momentum saturation
MagnetorquersCoil open circuit
Sun sensorsAlbedo contamination; Bias

Model fidelity, assumptions and limitations

Kinematic attitude modes attitude.kinematic.l1 v1.0.0

Intended use
Body orientation for solar power, thermal absorption and rendering
Assumptions
  • Attitude prescribed by mode; instantaneous slews
Limitations
  • No dynamics, pointing error or wheel saturation
  • Tumbling is an orientation average, not a trajectory
Verification
Verified (G2): independent fixtures pass in the TypeScript and Python implementations
Validation
None. No measured data from an identified spacecraft exists (internal maturity M2).
Specification
spec/models/attitude.md · TypeScript packages/core/src/spacecraft.ts · Python python/cubesat_twin/spacecraft.py

Verification and validation evidence

Tests check RTR=IR^\mathsf{T}R = I and det⁡R=+1\det R = +1 to 10⁻¹², each mode's axis definitions, x^⋅s^=y^⋅s^=1/2\hat x\cdot\hat s = \hat y\cdot\hat s = 1/\sqrt2 in sun-edge, and a Monte Carlo over 10⁶ seeded random orientations giving Atot/4A_{tot}/4 within three standard errors. No attitude telemetry has been used.

References

The attitude modes and Cauchy's formula are derived in the specification and verified numerically; no external value is used. Attitude dynamics (R3) will need a verified attitude-control reference before work starts.

Run it in CubeTwin