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

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 or a unit quaternion.
CubeTwin's body frame: origin at the geometric centre, along the 340.5 mm long axis towards the UHF antenna end cap, and 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
| Component | Purpose | Envelope (mm) | Physical principles |
|---|---|---|---|
Reaction wheelsadcs-reaction-wheels | Exchange angular momentum with the body to point it precisely. | 90 × 96 × 30 | Conservation of angular momentum; Rigid-body dynamics (R3) |
Magnetorquersadcs-magnetorquers | Create magnetic dipoles that react against Earth's field to detumble and desaturate wheels. | 70 × 10 × 10 | Torque τ = m × B |
Sun sensorsadcs-sun-sensors | Measure the Sun direction in the body frame. | 10 × 10 × 3 | Photodiode current ∝ cos θ |
Physical principles
Reaction wheels exchange angular momentum with the body (conservation of angular momentum). Magnetorquers produce a magnetic dipole that experiences a torque 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, , with :
| Mode | +X axis | +Z axis | +Y axis |
|---|---|---|---|
| sun-face | |||
| sun-edge | |||
| nadir | |||
| inertial | [1, 0, 0] | [0, 0, 1] | [0, 1, 0] |
| tumbling | statistical | statistical | statistical |
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.
| Symbol | Meaning | Unit |
|---|---|---|
| Rotation from body frame to inertial frame | – | |
| Sun direction, orbit normal, radial direction, velocity | –, –, –, m/s | |
| Total surface area; mean projected area | m² | |
| Direct-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.
| Parameter | Value | Source |
|---|---|---|
Attitude operations.attitude | sun-face | Assumption |
Safe-mode attitude operations.safeAttitude | sun-face | Assumption |
ADCS power, pointing loads.adcsPointing | 0.8 W | Assumption |
ADCS power, safe mode loads.adcsSafe | 0.5 W | Assumption |
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).
| From | Kind | Interface | To |
|---|---|---|---|
| Reaction wheels | DATA | SPI/I²C | Onboard Computer |
| Reaction wheels | POWER | 5 V | Electrical Power System board |
| Magnetorquers | DATA | PWM drive | Onboard Computer |
| Sun sensors | DATA | ADC | Onboard 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.
| Component | Catalogued failure modes |
|---|---|
| Reaction wheels | Bearing wear; Momentum saturation |
| Magnetorquers | Coil open circuit |
| Sun sensors | Albedo 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· TypeScriptpackages/core/src/spacecraft.ts· Pythonpython/cubesat_twin/spacecraft.py
Verification and validation evidence
Tests check and to 10⁻¹², each mode's axis definitions, in sun-edge, and a Monte Carlo over 10⁶ seeded random orientations giving 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.