INTReal-Time Loop OperationVERIFIEDStg 1Stg 2Stg 3

Modal Leaky Integrator

Core frame-synchronous modal leaky integrator with spatial-frequency gain rolloff.

Overview & Role

Executes hard real-time modal filtering inside modalfilter, applying per-mode loop gains shaped by spatial-frequency power law (--mgain-alpha, --mgain-floor), Tip/Tilt scaling (--mgain-tt), and leaky multipliers (--mult1/2/3).

Serves as the baseline closed-loop feedback law and the parallel fallback path when blended with predictive control (--pf-mix).

Compute Units / Entry Points: cacao-fpsexec-modalfilter

Verified Highlights:

Option Variants (CODE/OPT)

Option CodeBehavior & UsageMain Flags
INT/LEAKStandard modal leaky integrator (`u_k = mult * u_{k-1} - gain * w_k`).--gain1 --gain2 --gain3 --mult1 --mult2 --mult3
INT/MGAINSpatial-frequency power-law modal gain curve with Tip/Tilt override.--mgain-alpha --mgain-floor --mgain-tt

Dependencies & Calibration Chain

Upstream Calibrations & Inputs
← Required
MLATOffline Calib
Hardware Loop Latency Calibration
Selected Algorithm
★ Current Entry
INTRT Operation
Modal Leaky Integrator

CLI Flags, Environment Variables & FPS Parameters

LayerOption (Links to Reference)DefaultDescription
CLI Flag--gain10.35Stage-1 AO3k modal integrator loop gain
CLI Flag--gain20.35Stage-2 SCExAO modal integrator loop gain
CLI Flag--gain30.20Stage-3 LLOWFS modal integrator loop gain
CLI Flag--mult10.98Stage-1 AO3k leaky integrator multiplier
CLI Flag--mult20.98Stage-2 SCExAO leaky integrator multiplier
CLI Flag--mult30.99Stage-3 LLOWFS leaky integrator multiplier
CLI Flag--mgain-alpha0.8Modal gain power-law rolloff exponent across mode index
CLI Flag--mgain-floor0.10Modal gain floor factor applied at the highest controlled mode
CLI Flag--mgain-tt1.0Modal gain multiplier for Tip/Tilt modes 0 and 1
CACAO_* EnvCACAO_LOOPGAIN0.35 / 0.35 / 0.20Closed-loop modal integrator gain (stage 1 / 2 / 3)
CACAO_* EnvCACAO_LOOPMULT0.98 / 0.98 / 0.99Closed-loop leaky integrator multiplier (stage 1 / 2 / 3)
CACAO_* EnvCACAO_MGAIN_ALPHA0.8 (Stg1/2), 0.4 (Stg3)Power-law exponent shaping per-mode gain rolloff
CACAO_* EnvCACAO_MGAIN_FLOOR0.10 (Stg1/2), 0.40 (Stg3)Minimum modal gain factor at the highest controlled mode
CACAO_* EnvCACAO_MGAIN_TT1.0Modal gain scaling factor for tip/tilt modes 0 and 1

Implementation, Tests & Related Reports

Source Files

Verification Tests

Related Staged Technical Reports