OG/POKEOnline Calibration (In-Loop)VERIFIEDStg 1

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:

Option Variants (CODE/OPT)

Option CodeBehavior & UsageMain Flags
OG/POKELive closed-loop apply mode updating `aol1_mWFSfact` via clamped EMA.--online-og1 --og1-ampl --og1-nbmode --og1-stride --og1-hold
OG/POKE-SHADShadow monitoring mode estimating optical gain without modifying loop gains.--online-og1 --og1-no-apply

Dependencies & Calibration Chain

Selected Algorithm
★ Current Entry
OG/POKEOnline Calib
Single-Stage Closed-Loop DM-Poke Online Optical Gain

CLI Flags, Environment Variables & FPS Parameters

LayerOption (Links to Reference)DefaultDescription
CLI Flag--online-og1OFFEnable Stage-1 closed-loop DM-poke online optical gain (modalog; ON in DEFAULT/STAGE1)
CLI Flag--og1-ampl0.0015Stage-1 online-OG DM probe RMS amplitude [um]
CLI Flag--og1-nbmode128Stage-1 online-OG maximum probed modal index count
CLI Flag--og1-stride8Stage-1 online-OG sparse modal probing stride
CLI Flag--og1-hold3Stage-1 online-OG probe sample-and-hold length [frames]
CLI Flag--og1-no-applyOFFRun Stage-1 modalog in shadow mode without writing aol1_mWFSfact
CACAO_* EnvCACAO_PSOL_WFSFACT1.0Pseudo open-loop (PSOL) WFS residual scaling factor

Implementation, Tests & Related Reports

Source Files

Verification Tests