Inner Control-Mode Optimization (On-the-Fly Rotation Matrix)
Noise-whitened inner modal rotation matrix Q and 16-mode AR(48) telescope vibration notch strictly decoupled inside modalfilter.
Overview & Role
Continuously optimizes the inner closed-loop control modal basis via an orthogonal or noise-whitened rotation matrix Q (WFS_rot = Q^T WFS, DM = Q DM_rot) inside modalfilter, pairing rotated modes with optimal inner (gain, leak) (CMODES/ROT) and an optional 16-mode high-order AR(48) narrowband notch (CMODES/NOTCH) targeting 10-150 Hz telescope and optical-bench structural vibrations.
Strict Architectural Decoupling Rule: Q MUST remain strictly confined inside the inner modalfilter loop so the outer modal basis seen by modevalOL, Block-EOF, and Cascaded Self-Learning remains 100% invariant. At every atomic swap Q_old -> Q_new, the 48-frame inner AR history buffer is rotated in place (H_new = (Q_new^T Q_old) H_old), achieving 47.5 nm 100% bumpless swaps (vs 286.8 nm without history re-projection and 213-367 nm catastrophic spikes if the basis is rotated underneath EOF/self-learning).
Compute Units / Entry Points: modalfilter (inner Q rotation & AR(48) notch — planned)milk-fpsexec-mlt-cmodes (async covariance & Q solver — planned)
Verified Highlights:
- Live mid-run basis swaps: 47.5 nm peak bumpless (vs 286.8 nm unrotated & 213-367 nm coupled EOF/selflearn)
- +30 nm narrowband telescope vibrations: 25.84 -> 22.22 nm (-14.0%); pure turb: 19.23 -> 18.17 nm
- Inner Q + AR(48) RT overhead: +2.4 us @ 128 modes (21.2 us total with Fixed EOF = 4.2% of 2 kHz)
Option Variants (CODE/OPT)
| Option Code | Behavior & Usage | Main Flags |
|---|---|---|
CMODES/ROT | Noise-whitened on-the-fly inner modal rotation matrix Q inside modalfilter with atomic basis swaps (leaves outer EOF/SELFLEARN basis 100% fixed). | — |
CMODES/NOTCH | Inner 16-mode narrowband AR(48) telescope-vibration notch with atomic history re-projection `H_new = (Q_new^T Q_old) H_old` across basis swaps. | — |
Dependencies & Calibration Chain
Terminal diagnostic or output stage.
CLI Flags, Environment Variables & FPS Parameters
Configured directly via FPS unit parameters or calibration script.
Implementation, Tests & Related Reports
Source Files
- cacao:
AOloopControl/modalfilter.c
Verification Tests
Offline 7-regime + live basis-swap + RT CPU timing benchmark (ready for C deployment)