Module 02

Attitude
Control

Spin reaction wheels, fire thrusters, and let a PID controller do the work. Understand how spacecraft orient themselves in the void — without anything to push against.

Interactive 2D Simulation Accurate Dynamics Keyboard Controls
// Control Mode
Reaction Wheel Speed
Target: 0 RPM
← Target CCWTarget CW →
Magnetorquer
0 A·m²
← NegativePositive →
Thrusters
Or use [ A ] / [ D ] keys
Target Angle
360°
// Attitude Telemetry
Current Angle 0.0°
Angular Velocity 0.00 °/s
Pointing Error 0.0°
Actual RW RPM 0 RPM
Control Mode Manual
Fuel Remaining 100%
// Attitude Visualizer — 2D Body Frame
TARGET: 0°
ADCS ACTIVE
θ: 0.0°
ω: 0.00 °/s
// Keyboard
ACCW thruster
DCW thruster
SpaceKill rotation
RReset
1Manual
2PID Auto
🌀
Angular Momentum
τ = I · α
A motor accelerates the reaction wheel (Moment of Inertia I). Newton's Third Law dictates an equal and opposite torque is applied to the spacecraft, allowing it to turn in a vacuum.
🧲
Magnetic Torque
τ = m × B
A magnetorquer generates a magnetic dipole moment (m) that interacts with Earth's field (B). The torque is physically limited and weak, so detumbling takes time.
⚙️
PID Control
u = Kp·e + Ki·∫e - Kd·ω
Kp drives toward target, Ki removes steady-state offset, and Kd prevents overshoot. We use actual velocity (-ω) instead of error derivative to prevent "derivative kick" when targets change.