Skip to content

oscnb: read the speed and position loop margins from a margin sweep's rows - #153

Merged
aq1018 merged 1 commit into
mainfrom
oscnb-margin
Nov 15, 2026
Merged

aq1018 merged 1 commit into
mainfrom
oscnb-margin

Conversation

@aq1018

@aq1018 aq1018 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor
  • oscnb/margin.py: from a margin sweep's rows (the observer's position, the loop's speed and the summed speed reference, one row a tick), the open-loop gain of the speed loop and of the position loop per frequency, and each loop's gain and phase margin, with the two-cruise check for an interference fixed in position.
  • The module doc defines the sweep's on-disk form the capture tool will write.
  • Tested on a synthetic loop with a closed-form gain: quiet rows read it within 0.2 dB and 2 deg, the margins within 1 deg and 0.2 dB; a paused cycle and a hole are dropped and counted.

Bench gate

none: an offline reader. The first bench sweep is the firmware stimulus's debt and needs the capture tool.

@aq1018
aq1018 merged commit f64a672 into main Nov 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant