Repository navigation
Conversation
|
@codex is attempting to deploy a commit to the baronclaps' projects Team on Vercel. A member of the Team first needs to authorize it. |
Member
|
Thanks for the contribution, but we do not want to add this feature.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Teams that plan in FTC field coordinates currently have to translate their waypoints into the visualizer's corner-based frame. This PR adds FTC coordinate planning and optional tile units so teams can plan Pedro paths using the same field-centered reference they use on their robots.
1. Plan with the documented FTC coordinate system
Add Pedro, FTC, and FTC Inverted options. The FTC options follow the origin, axis orientation, and positive rotation conventions in FIRST's Field Coordinate System Definition, including the inverted square-field configuration.
A centered origin makes distances and targets relative to the field center easy to express. It also simplifies symmetry-based reuse of autonomous logic: a team can define a canonical plan and use alliance/starting-side signs to reflect positions and headings instead of maintaining separate waypoint sets. The README includes a compiled, checked Java enum example. The appropriate symmetry is game-dependent; this does not automatically generate alliance-selection code or claim improved localization accuracy.
Coordinate and heading editors, playback, ruler, grid/snapping, and points-array export follow the selected frame. Switching frames preserves the physical path. Java/Kotlin robot-code exports continue to use Pedro coordinates and inches.
2. Let students reason in tiles
Whole tiles, half tiles, and tenths of a tile are easier planning units for many students than estimating inch distances. Teams can enter fractional tile coordinates and switch to inches to inspect the same path.
When Tiles is selected, changing Inches per Tile preserves the entered tile positions, including control/through points, facing-point targets, custom obstacles, and undo/redo history. For example, FTC (2, 2) stays (2, 2) when the tile size changes from 23.5 to 24; its exported Pedro-inch position changes from (117.75, 23.75) to (118.75, 22.75). With Inches selected, physical positions stay fixed. Robot dimensions and motion settings remain in inches.
3. Ground the visualization in field geometry
The image, grid, snapping, GIF background, built-in obstacle outlines, and collision checks share the editable tile calibration. The 23.5-inch default rounds the approximately 23.502083-inch assembled tile repeat measured in FIRST's official BIOBUZZ STEP assembly. The README cites the FTC manual (§9.1–9.2), field setup guide, and Onshape assembly; a measurement record identifies the inspected archive and method.
The inherited 141.5-inch boundary and 70.75-inch center remain for project compatibility, rather than claiming exact CAD perimeter dimensions. Built-in obstacles remain approximate plan-view outlines, not full 3D collision meshes. Editing their vertices detaches them from automatic template calibration.
Integration and validation
Opening as a draft for maintainer feedback on FTC planning, tile units, and the calibration approach.