-
-
Notifications
You must be signed in to change notification settings - Fork 2
Master for editing #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Updated angle constants to use fractional values.
…for-editing # Conflicts: # TeamCode/src/main/java/org/firstinspires/ftc/teamcode/soloOP/solo_op_MAIN.java
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis pull request centralizes hardware and autonomous configuration constants into Changes
Sequence Diagram(s)sequenceDiagram
participant Teleop as TeleOp Loop
participant Follower as Follower
participant Vision as Vision Portal
participant Drive as Drive
participant Launcher as Launcher
Teleop->>Vision: Poll AprilTag detection
Vision-->>Teleop: Tag detected (alignmentRequested)
alt Alignment Active (Right Trigger >= 0.2)
Teleop->>Follower: Set goal position from set_goal_position()
Teleop->>Follower: Update follower state
Follower-->>Teleop: Compute path & corrections
Teleop->>Drive: Apply follower teleop drive commands
Drive-->>Teleop: Motor outputs
else Manual Drive
Teleop->>Drive: Apply gamepad inputs directly
Drive-->>Teleop: Motor outputs
end
alt Auto-Aiming (in aimingTest)
Teleop->>Follower: Get current pose
Follower-->>Teleop: Follower pose
Teleop->>Teleop: Calculate distance & height
Teleop->>Teleop: Compute optimal angle/velocity via projectile motion
Teleop->>Launcher: Set velocity & servo angle
Launcher-->>Teleop: Launch ready
end
sequenceDiagram
participant Init as Init Phase
participant Autonomous as Path Execution
participant Follower as Follower
participant StaticComm as StaticCommunism
Init->>Autonomous: Set starting pose (StaticCommunism.pose or set_starting_pose)
Init->>Autonomous: Create Paths via set_color()
Autonomous->>Follower: Begin path following (pathState = 1)
Follower->>Follower: Follow preload path
Follower-->>Autonomous: Path complete
Autonomous->>Autonomous: Launch & shoot (pathState = 100/101)
Autonomous->>StaticComm: Record pose after shooting
Autonomous->>Autonomous: Enter wait state (pathState = 200)
Autonomous->>Autonomous: Hold for 0.3-0.5 seconds
Autonomous->>Autonomous: Advance to next path (pathState = 0)
Autonomous->>Follower: Begin next path
Follower->>Follower: Follow pickup/park path
Follower-->>Autonomous: Path complete
Autonomous->>Autonomous: End autonomous
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (18)
Comment |
What did you change?
Have you..
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes
Refactor
✏️ Tip: You can customize this high-level summary in your review settings.