Skip to content

protocols: FicTrac closed-loop + open-loop direction/speed test (~5.5 min) - #142

Merged
mbreiser merged 1 commit into
mainfrom
protocol/fictrac-direction-test
Jul 4, 2026
Merged

mbreiser merged 1 commit into
mainfrom
protocol/fictrac-direction-test

Conversation

@mbreiser

@mbreiser mbreiser commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

A new v3 curriculum test protocol to finally exercise FicTrac closed-loop and both-direction open-loop from a YAML run — using only the g6_2x10 patterns already on the card (no new patterns).

  • Block 1 — open-loop (Mode 2), ~4 min: grating_sq (remove G5 #2) + grating_sine (Standardize CI/CD Node.js version to v24 #3) × 3 speeds (5/15/30 Hz) × 2 directions (forward = +frame_rate, reverse = −frame_rate) = 12 trials × 10 s, repeated 2× = 240 s. This is the first test of the negative-frame_rate reverse path driven from a protocol via Run (only the Console path was bench-verified before).
  • Block 2 — closed-loop (Mode 3 + FicTrac), ~1.5 min: frame2_h_ccw_200f (Fix column numbering convention and 3D viewer improvements #4) host-stepped by FicTrac heading through the bridge (gain 1.8 = 360/200), 30 s × 3 reps = 90 s.
  • Total ≈ 5.5 min. Fly-on-ball rig. Needs pixi run bridge; pixi run sim supplies synthetic heading with no fly.

Verified: parses as v3 (protocols-index test 34/34, full suite 771/771); loads in the Studio, all patterns resolve, flattens to 29 steps / 330 s with the 2×/3× block repetitions applied.

Bench test to follow (simulated FicTrac). MATLAB has no FicTracPlugin, so the closed-loop block is web-runner only.

… min)

New v3 curriculum test protocol using only the on-card g6_2x10 patterns (2/3/4):
- Block 1 (open-loop, Mode 2): grating_sq + grating_sine × 3 speeds (5/15/30 Hz)
  × 2 directions (reverse = NEGATIVE frame_rate) = 12 trials × 10 s, ×2 reps = 4 min.
  First YAML→Run exercise of the negative-frame_rate reverse path.
- Block 2 (closed-loop, Mode 3 + FicTrac): frame2_h_ccw_200f host-stepped by
  FicTrac heading (gain 1.8 = 360/200), 30 s × 3 reps = 1.5 min.
Uses the fly-on-ball rig; needs `pixi run bridge` (+ `pixi run sim` for synthetic
heading when there's no fly). Registered in protocols/index.json.

Verified: parses as v3 (protocols-index test 34/34, suite 771/771); loads in the
Studio, resolves all patterns, flattens to 29 steps / 330 s (5.5 min) with the
2×/3× block reps applied.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@mbreiser
mbreiser merged commit b868c5d into main Jul 4, 2026
@mbreiser
mbreiser deleted the protocol/fictrac-direction-test branch September 28, 2026 22:15
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