← Back to Pull requests

Auto: clear the hive frame on the garden leg; robot's real values #57

Closed
unknown closed this pull request without merging on Nov 06, 2026 03:40 UTC
View on GitHub
unknown unknown commented on Nov 06, 2026 03:40 UTC
Author

On the real robot, the drive back south to the garden (toGarden) hit the hive frame's west bar. This PR moves that leg west and syncs the autos with the robot's current values.

Path

toGarden's first two control points move from (-48, 50) and (-50, -30) to (-56, 52) and (-60, -24). With the rotated footprint (bar tip 14.2 in ahead, back 7.8 in, 17.84 in wide), the robot now clears the frame bar and leg feet by 10.4 in (was 4.3) and the west wall by 13.8 in. tools/zenith_headings.py regenerated the heading pieces from the new curve.

gardenSweepEnd x changes from -59.6 to -59.0. With the wider curve, the sim's robot rolled 1.2 in past the old end into the west wall. The front roller still finishes over the corner pollen, at -69.2 against the pollen's -69.27.

Both changes are copied to AutoPoses (the hand-written auto) and mirrored to two-tip-blue. Zenith deploy and codegen were re-run.

Values

Both autos build the same BioHorsRobot as teleop. Gates, flower bar, Pinpoint offsets, shooter gains and directions are therefore already shared. Two values change:

  • AUTO_POLLEN_RPM 1750 → 3100, the team's speed.

  • Gates open 0.485 / closed 0.2, the team's values from teleop. They were labelled PLACEHOLDER and are now SET BY HAND.
  • Tests

  • The teleop gate tests read the constants instead of a hard-coded 0.485.

  • The physics-shot tests used AUTO_POLLEN_RPM to mean "a speed that seats in the sim". They now use ZenithAutoMatchTest.SIM_SEATING_RPM (1750, SET FROM SIM). The full physics match runs the robot at its real 3100 and scales the guessed grip by 1750/3100, so the ball leaves at the same speed as before. The sim's ball speed is still not measured.

  • Full :TeamCode:testDebugUnitTest passes: the Zenith match (RED twice with identical logs, BLUE once, no structure contact), the state-machine auto and AutoPosesTest. Before the sweep-end move, the match test failed on the wall contact.
  • Not fixed here

    In the sim, the 0.2 speed cap on the garden sweep is not reached. The robot sweeps at about 40 in/s on main too. Worth checking on the real robot before trusting the corner.

    Diff: 270 lines (+202 / -68) across 3 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 0m
    All Vouch review confidence checks passed
    Residual risk 0.34 = Change Risk (0.44) × (1 − Review Confidence (0.24)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 270 lines diff across 3 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 2% · Reviewer familiarity: 35%
    23%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.335
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #57"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 23.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 44.4% (MEDIUM) · Higher = larger blast radius
    44.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 23.6% · Lower = rushed or shallow review
    23.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 34.0% · Safe to merge
    34.0%