WFS Zero-Point Offset & Optical-Gain Scaling
Transfers Stage-3 LLOWFS offsets into Stage-2 PyWFS reference scaled by live OG.
Overview & Role
Computes the Stage-2 WFS reference offset (wfszpo) corresponding to Stage-3 LLOWFS DM2 commands so the fast Stage-2 PyWFS does not fight the coronagraphic focal-plane pointing loop.
Live FPFLAG_WRITERUN .WFSzpogain in acquireWFSim.c scales wfszpo by 0.95*g_opt (either statically via --zpo-og or online from 2WFS/LIVE), preventing ZPO wind-up and over-subtraction when on-sky PyWFS optical gain drops below 1.
Compute Units / Entry Points: cacao-fpsexec-acquWFS (.WFSzpogain)cacaoloop setog
Verified Highlights:
- -26% Stage-2 WFS TT RMS & Q_lo20 in live 8 s A/B; 6.6x less LLOWFS ZPO fightback
Option Variants (CODE/OPT)
| Option Code | Behavior & Usage | Main Flags |
|---|---|---|
ZPO/FIX | Static unit-gain or manual `--zpo-og` WFS zero-point offset transfer. | --zpo-og --no-lowfs |
ZPO/OG | Live optical-gain scaled `acquWFS-2.WFSzpogain` updated by `2WFS/LIVE`. | --live-2wfs1dm-sec --zpo-og |
Dependencies & Calibration Chain
Upstream Calibrations & Inputs
Selected Algorithm
★ Current Entry
ZPORT Operation
WFS Zero-Point Offset & Optical-Gain Scaling
Feeds & Enables Downstream
CLI Flags, Environment Variables & FPS Parameters
| Layer | Option (Links to Reference) | Default | Description |
|---|---|---|---|
| CLI Flag | --zpo-og | 1.0 | Stage-2 optical-gain scale applied to ZPO (0.95*g_opt) and PSOL (1/g_opt) |
| CLI Flag | --no-lowfs | OFF | Keep Stage-3 Lyot LLOWFS loop open during science integration |
| CACAO_* Env | CACAO_WFSZPO_GAIN | 1.0 | Optical-gain scaling factor applied to WFS zero-point offset (wfszpo) |
Implementation, Tests & Related Reports
Source Files
- cacao:
AOloopControl_IOtools/acquireWFSim.c - cacao-work:
benches/ao3k_scexao/cacaoloop-ao3k-scexao.milk
Verification Tests
test_11_whiteness_and_zpo.pytest_14_calib2wfs1dm_live.py