Skip to content

Betterrideseq - #15

Open
jackjustus wants to merge 3 commits into
mainfrom
betterrideseq
Open

Betterrideseq#15
jackjustus wants to merge 3 commits into
mainfrom
betterrideseq

Conversation

@jackjustus

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings April 11, 2026 11:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the default ride profile configuration to run a more “independent tower” drop/launch sequence, adjusting segment ordering, completion modes, and timeouts used by the ride sequencer.

Changes:

  • Renamed the default profile and updated segment names to reflect independent tower actions.
  • Changed segment completion behavior (e.g., waitForBoth vs waitForEither) to alter sequencing between tower motions.
  • Tweaked segment timeouts (notably the top hold segment) to tighten timing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread profiles/default.json
"completionMode": "duration",
"durationS": 2.0,
"timeoutS": 30.0
"timeoutS": 2.5

Copilot AI Apr 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For duration-based segments, the sequencer checks elapsed > timeoutS before checking completion. With durationS: 2.0 and timeoutS: 2.5, any loop stall/jitter >0.5s will trigger an E‑Stop even though the duration has already been satisfied. Consider increasing timeoutS (or omitting it to use the loader default) so it comfortably exceeds durationS by at least the worst-case expected loop delay.

Suggested change
"timeoutS": 2.5
"timeoutS": 3.0

Copilot uses AI. Check for mistakes.
Comment thread profiles/default.json
"name": "Drop tower 2 and launch tower 1",
"motor1": {"type": "driveToPosition", "position": 4500, "speed": 1000, "accel": 1000, "decel": 2000},
"motor2": {"type": "driveToPosition", "position": 500, "speed": 5000, "accel": 10000, "decel": 5000},
"completionMode": "waitForEither",

Copilot AI Apr 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

completionMode: "waitForEither" allows this segment to complete solely because tower 1 reached its target even if tower 2 never reached the bottom position (e.g., tower 2 stalls or is already at/near the top). That can let the sequence proceed without ever verifying the intended “Drop tower 2” occurred. If tower 2 reaching bottom is required before moving on, switch to waitForBoth or restructure the sequence so the gating condition explicitly depends on tower 2’s drop completing.

Suggested change
"completionMode": "waitForEither",
"completionMode": "waitForBoth",

Copilot uses AI. Check for mistakes.
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.

2 participants