Skip to content
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

[wpilib] Field2d enhancements #3234

Merged
merged 17 commits into from
Mar 27, 2021
Merged

Conversation

PeterJohnson
Copy link
Member

@PeterJohnson PeterJohnson commented Mar 11, 2021

  • Add raw support for pose lists > 255/3 in length
  • Improve drag selection, especially with closely overlapping objects
  • Drag selection of corner also highlights center of object with smaller circle
  • Multiple styles (box, line, closed line, track)
  • Configurable line and arrow settings (color, weight)
  • Add tooltip for object name, index, x, y, rotation
  • Context menu for pose edit/add/remove
  • View/edit in feet or inches as well as meters
  • Configurable object selectability

Implementation: use vector of Pose2d internally, use units

Fixes #3197.

@PeterJohnson PeterJohnson added component: wpilibj WPILib Java component: wpilibc WPILib C++ component: glass Glass app and backend labels Mar 11, 2021
@PeterJohnson PeterJohnson requested a review from a team as a code owner March 11, 2021 08:35
@PeterJohnson PeterJohnson changed the title [wpilib] Field2d: add raw support for arrays > 255 [wpilib] Field2d enhancements Mar 14, 2021
@PeterJohnson PeterJohnson force-pushed the field2d-extra branch 2 times, most recently from 790dfa1 to 9e1f359 Compare March 19, 2021 15:59
@PeterJohnson PeterJohnson merged commit c97acd1 into wpilibsuite:main Mar 27, 2021
@PeterJohnson PeterJohnson deleted the field2d-extra branch March 27, 2021 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: glass Glass app and backend component: wpilibc WPILib C++ component: wpilibj WPILib Java
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Glass] Add ability to draw on Field2D via Robot Code
1 participant