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:
- 22.6 us baseline RT execution at NBmode = 1,255
Option Variants (CODE/OPT)
| Option Code | Behavior & Usage | Main Flags |
|---|---|---|
INT/LEAK | Standard modal leaky integrator (`u_k = mult * u_{k-1} - gain * w_k`). | --gain1 --gain2 --gain3 --mult1 --mult2 --mult3 |
INT/MGAIN | Spatial-frequency power-law modal gain curve with Tip/Tilt override. | --mgain-alpha --mgain-floor --mgain-tt |
Dependencies & Calibration Chain
Upstream Calibrations & Inputs
Selected Algorithm
★ Current Entry
INTRT Operation
Modal Leaky Integrator
Feeds & Enables Downstream
CLI Flags, Environment Variables & FPS Parameters
| Layer | Option (Links to Reference) | Default | Description |
|---|---|---|---|
| CLI Flag | --gain1 | 0.35 | Stage-1 AO3k modal integrator loop gain |
| CLI Flag | --gain2 | 0.35 | Stage-2 SCExAO modal integrator loop gain |
| CLI Flag | --gain3 | 0.20 | Stage-3 LLOWFS modal integrator loop gain |
| CLI Flag | --mult1 | 0.98 | Stage-1 AO3k leaky integrator multiplier |
| CLI Flag | --mult2 | 0.98 | Stage-2 SCExAO leaky integrator multiplier |
| CLI Flag | --mult3 | 0.99 | Stage-3 LLOWFS leaky integrator multiplier |
| CLI Flag | --mgain-alpha | 0.8 | Modal gain power-law rolloff exponent across mode index |
| CLI Flag | --mgain-floor | 0.10 | Modal gain floor factor applied at the highest controlled mode |
| CLI Flag | --mgain-tt | 1.0 | Modal gain multiplier for Tip/Tilt modes 0 and 1 |
| CACAO_* Env | CACAO_LOOPGAIN | 0.35 / 0.35 / 0.20 | Closed-loop modal integrator gain (stage 1 / 2 / 3) |
| CACAO_* Env | CACAO_LOOPMULT | 0.98 / 0.98 / 0.99 | Closed-loop leaky integrator multiplier (stage 1 / 2 / 3) |
| CACAO_* Env | CACAO_MGAIN_ALPHA | 0.8 (Stg1/2), 0.4 (Stg3) | Power-law exponent shaping per-mode gain rolloff |
| CACAO_* Env | CACAO_MGAIN_FLOOR | 0.10 (Stg1/2), 0.40 (Stg3) | Minimum modal gain factor at the highest controlled mode |
| CACAO_* Env | CACAO_MGAIN_TT | 1.0 | Modal gain scaling factor for tip/tilt modes 0 and 1 |
Implementation, Tests & Related Reports
Source Files
- cacao:
AOloopControl/modalfilter.c
Verification Tests
test_00_stack_sanity.pytest_12_dyn_psol.py