- Subsatellite latitude
- N 17.07°
- Subsatellite longitude
- E 56.09°
- Orbital velocity
- 7.658 km/s
CW / Hill guidance · Proximity geometry visually amplified
Autonomous rendezvous—in real time.
A chaser CubeSat closes from 300 metres through a constrained approach corridor. Hill-frame relative motion, closed-loop thrust commands, keep-out geometry, closing speed, and delta-v remain visible throughout the maneuver.Spacecraft pointing response
Angle deviation from trim · degrees
- PITCH
- 4.20°
- ROLL
- 6.40°
- YAW
- 2.80°
Orbital mission console
Coupled quaternion propagation, body rate, reaction-wheel momentum, guidance mode, and orbit-state telemetry for the tracked controller.
q = [0.9975, 0.0549, 0.0379, 0.0223]ω = [-0.062, -0.044, -0.026] °/shw = [0.0002, 0.0001, 0.0001] N·m·s- 01Initialize stateT+0.0 s
- 02Disturbance injectionT+2.0 s
- 03Closed-loop recoveryT+5.2 s
- 04Performance assessmentT+9.2 s
Controller comparison
- RMS error
- 4.20°
- Peak deviation
- 4.2°
- Settle time
- >12 s
- RMS error
- 2.33°
- Peak deviation
- 4.2°
- Settle time
- 9.8 s
- RMS error
- 2.05°
- Peak deviation
- 4.2°
- Settle time
- 8.2 s
Mission analysis
A composite score combines RMS error, peak deviation, and settling performance across pitch, roll, and yaw.
- Attitude-error suppression
- 53.0% RMS · LQR
- Peak wheel capacity
- 52.0% max |hw,axis|
- Maximum body rate
- 3.137°/s max |ω|
- Sample integrity
- 301/301 Δt = 0.04 s
ADCS verification matrix
ADCS-RQ-01Final pointing error ≤ 5°PASSADCS-RQ-02Per-axis wheel momentum < 100%PASSADCS-RQ-03Quaternion norm error ≤ 10⁻⁵PASSADCS-RQ-04301 state samples at 25 HzPASSADCS-RQ-05Identical disturbance for all controllersPASSMulti-objective ADCS gain optimizer
Evaluates 81 authority/gain designs across solar, magnetic, and slew missions, rejects infeasible wheel or pointing outcomes, and identifies the best weighted design and Pareto frontier.
Design-envelope robustness campaign
A seeded 48-case campaign perturbs spacecraft mass, orbit altitude, environmental torque, wheel authority, gain calibration, inclination, and disturbance scenario.
Stability score
Stability score
Stability score
MODEL TRANSPARENCY / 03
Know what the simulator is calculating
FlightLab keeps the mathematics visible. It uses three independent rotational channels to isolate the effect of feedback on pitch, roll, and yaw.Rigid-body attitude dynamics
The spacecraft branch propagates a normalized attitude quaternion and a coupled three-component body-rate vector using the diagonal inertia tensor, gyroscopic cross-coupling, environmental torque, gravity-gradient torque, and saturated reaction wheels.
Controller architecture
u = −(Kpθ + Kdω + Ki∫θdt)PID reacts to present error, motion rate, and accumulated error. It is intuitive to tune and can remove steady-state offset.
u = −KxLQR applies state feedback to angle and angular rate. The gains represent a balance between attitude error and control effort.
Experiment protocol
Every controller receives the same initial condition and deterministic disturbance. This makes each comparison repeatable and fair.
How the inputs affect the model
ASSUMPTIONS / 05
The assumptions behind the CubeSat branch
The astronautics model keeps physical units and orbital dependencies visible while isolating the controller comparison.- 01
Elliptical two-body low-Earth orbit with configurable inclination, RAAN, and eccentricity; Earth rotation, cylindrical eclipse, dipole magnetic-field magnitude, and secular J₂ RAAN drift are evaluated.
- 02
A diagonal representative CubeSat inertia tensor with full three-axis gyroscopic coupling.
- 03
Small pointing errors expressed in radians internally and reported in degrees.
- 04
Deterministic solar, magnetic, and slew torques for repeatable experiments.
- 05
Identical reaction-wheel saturation for PID and LQR control laws.
ASTRONAUTICS MODEL / 06
An orbital attitude-control laboratory—not an aircraft reskin
CubeSat mode uses a separate rotational model, orbital calculation, disturbance environment, actuator scale, and mission interpretation designed specifically for spacecraft ADCS education.Spacecraft rotational equation
Euler’s rigid-body equation balances angular-momentum rate against reaction-wheel, environmental, and gravity-gradient torques. FlightLab retains the ω×Iω coupling term and propagates a normalized quaternion at 25 Hz.
- Solver
- semi-implicit quaternion
- Rate
- 25 Hz
- State
- q, ω, hw
Low Earth orbit environment
n = √(μ / r³)T = 2π / nA Kepler propagator advances an elliptical low-Earth orbit through ECI and Earth-fixed frames. The environment layer computes eclipse geometry, a dipole-field estimate, J₂ nodal drift, gravity-gradient torque, solar-pressure impulses, and residual magnetic interaction.
- h
- 500 km
- T
- 94.5 min
- n
- 1.109e-3 rad/s
ADCS control loop
A mission ADCS estimates attitude, calculates error, commands actuators, and observes the new state. This laboratory focuses on control and rigid-body propagation.
Reaction-wheel actuation
PID and LQR command the same saturated wheel-torque envelope. Independent gain multipliers reveal overshoot, settling, and control-authority tradeoffs.
INTERPRETATION / 04
Read the result like a control engineer
RMS error
Average attitude error across the complete 12-second run. Lower values mean tighter regulation.
Peak deviation
The largest departure from trim. It shows the worst transient excursion.
Settle time
The final time the response remains outside the ±1.5° stability band.
Run a four-step experiment
A complete classroom or portfolio investigation takes only a few minutes.
- 01
Choose a repeatable disturbance scenario.
- 02
Set mass, airspeed, wind intensity, and control authority.
- 03
Run once, then inspect pitch, roll, and yaw with identical conditions.
- 04
Export the CSV and defend which controller performed better—and why.
Investigation prompts
- When does added aircraft mass change the controller ranking?
- Does higher control authority always improve the response?
- Which axis is most sensitive to each disturbance profile?
01 / METHOD
What this demonstrates
A reproducible three-axis linearized model shows how feedback changes disturbance rejection. Every run is computed locally in your browser; no installation or account is required.
02 / SCOPE
Educational model
Designed for control-system intuition and classroom exploration—not aircraft design, certification, or operational use.
03 / 中文简介
航空与航天双域控制实验
SpaceTech FlightLab 将飞机飞行控制与 CubeSat 轨道姿态控制整合在同一平台中,可比较 PID、LQR 与无控制响应,并导出完整实验数据。