Single-Stage Closed-Loop DM-Poke Online Optical Gain
Exogenous DM-poke IV optical-gain tracker with clamped local-linear smoothing.
Overview & Role
Injects low-amplitude held (hold >= 3) sparse modal probes inside modalfilter (< 0.1 us RT overhead) that are completely cancelled out of modevalOL by Dynamic PSOL. Async cacao-fpsexec-modalog convolves commands and probes through H_eff, computes differenced exogenous-IV gain estimates with autocorrelation-robust SEs, applies 1st-order local-linear radial smoothing clamped to the probed band [f_lo, f_hi], and updates live aol1_mWFSfact = 1/g_opt (resetting scalar comp.WFSfact = 1.0).
Primary online optical-gain solution for Stage 1 (which has no upstream WFS) and standalone single-stage loops; remains completely unbiased under closed-loop PF=ON.
Compute Units / Entry Points: cacao-fpsexec-modalogmodalfilter (.comp.ogprobe.*)
Verified Highlights:
- 1.18% lockstep err (0.72% under PF=ON), 2.77% HIL with 4.24 nm probe, 0.6% live AO3k err
Option Variants (CODE/OPT)
| Option Code | Behavior & Usage | Main Flags |
|---|---|---|
OG/POKE | Live closed-loop apply mode updating `aol1_mWFSfact` via clamped EMA. | --online-og1 --og1-ampl --og1-nbmode --og1-stride --og1-hold |
OG/POKE-SHAD | Shadow monitoring mode estimating optical gain without modifying loop gains. | --online-og1 --og1-no-apply |
Dependencies & Calibration Chain
CLI Flags, Environment Variables & FPS Parameters
| Layer | Option (Links to Reference) | Default | Description |
|---|---|---|---|
| CLI Flag | --online-og1 | OFF | Enable Stage-1 closed-loop DM-poke online optical gain (modalog; ON in DEFAULT/STAGE1) |
| CLI Flag | --og1-ampl | 0.0015 | Stage-1 online-OG DM probe RMS amplitude [um] |
| CLI Flag | --og1-nbmode | 128 | Stage-1 online-OG maximum probed modal index count |
| CLI Flag | --og1-stride | 8 | Stage-1 online-OG sparse modal probing stride |
| CLI Flag | --og1-hold | 3 | Stage-1 online-OG probe sample-and-hold length [frames] |
| CLI Flag | --og1-no-apply | OFF | Run Stage-1 modalog in shadow mode without writing aol1_mWFSfact |
| CACAO_* Env | CACAO_PSOL_WFSFACT | 1.0 | Pseudo open-loop (PSOL) WFS residual scaling factor |
Implementation, Tests & Related Reports
Source Files
- cacao:
AOloopControl/modalog.c - cacao:
AOloopControl/modalfilter.c
Verification Tests
test_13_online_og.pyao3k_phases1to5_bench.py