High-Rate DM Mechanical Anti-Vibration Pre-Shaper
Real-time 2-4 kHz MIMO FIR filter suppressing ALPAO plate mechanical vibrations, ringing, and cross-mode coupling downstream of DMch2disp.
Overview & Role
Runs strictly downstream of DMch2disp (mvalpacer -> mvalC2dm -> DMch2disp -> dmpreshaper -> DM), convolving DM commands at 2-8 kHz with calibrated causal modal MIMO (KMODE=0), uniform SISO (KMODE=2), per-actuator SISO (KMODE=3), or per-actuator spatially-varying (2R+1)x(2R+1) local-stencil MIMO (KMODE=4) kernels (PRESH/CAL) to suppress mechanical plate overshoot, ringing (f0 ~ 1 kHz), free-rim edge reflections, and cross-actuator 2D wave coupling.
Targets DM mechanical plate vibrations (distinct from 10-150 Hz optical/telescope vibrations cancelled in modal space by CMODES/NOTCH and EOF). Synergizes directly with upstream Multi-Rate DM Pacing (MRDM): smooth 1 kHz linear ramps reduce step derivatives seen by dmpreshaper, cutting peak pre-shaper stroke by 18-40% with zero actuator clips and -40% ALPAO 1 kHz plate-band energy.
Requires Pass-2 3D RM (3DRM/P2) when paired with Dynamic PSOL so downstream observers see the exact shaped plant group delay and residual coupling.
Compute Units / Entry Points: cacao-fpsexec-dmpreshaper
Verified Highlights:
- 12x12 HIL: 5.12x modal MIMO ringing cut; per-actuator KMODE=4 cuts rim overshoot 9.5x, ringing 4.5x, 2D waves 2.55x RMS (2 & 4 kHz)
- 64x64 ALPAO plate: 3.87x full MIMO ringing cut at 2 kHz; 4-11x at 8 kHz with exposure deconvolution
- Paired with upstream 1 kHz Multi-Rate DM Pacing (m=6, 250 Hz): -40% 1 kHz plate-band energy, -35% HF OPD ripple, -18..40% pre-shaper stroke, 0 clips, +2.7 pts Vis Strehl
Option Variants (CODE/OPT)
| Option Code | Behavior & Usage | Main Flags |
|---|---|---|
PRESH/4K | 2-8 kHz real-time modal (`KMODE=0..2`) & per-actuator (`KMODE=3, 4`) FIR DM pre-shaper. | --dm1-preshaper |
Dependencies & Calibration Chain
CLI Flags, Environment Variables & FPS Parameters
| Layer | Option (Links to Reference) | Default | Description |
|---|---|---|---|
| CLI Flag | --dm1-preshaper | — | Stage-1 4 kHz DM pre-shaper MIMO FIR kernel FITS (dmpreshaper) |
Implementation, Tests & Related Reports
Source Files
Verification Tests
test_10_dmpreshaper.pytest_18_multirate_dm.pyao3k_phases1to5_bench.py
Related Staged Technical Reports
- DM Mechanical Anti-Vibration Pre-Shaper Demonstration (3D RM Calibration → Optimal 8 kHz Control)
- Unified AO Real-Time Control Architecture: Taxonomy, Decoupled Synthesis, White-Noise Safety & Faint-Star Multi-Rate DM Control
- Implementation Plan: Unified AO Real-Time Control Architecture (milk, cacao, milk-mltools)
- Raw 3D Spatiotemporal Response Matrix Calibration — ALPAO 64×64 Plate DM (cacaoac-measdynresp)
- ALPAO 64×64 Magnetic DM Spatiotemporal Facesheet Dynamics (dyn_mode = "plate")