Skip to content

Commit

Permalink
doesn't appear to be a megatag2 impl for 3d poses, so swap to 2d for …
Browse files Browse the repository at this point in the history
…everything
  • Loading branch information
amb2127 committed Apr 6, 2024
1 parent af01023 commit d6303fd
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ private void processVisionData(VisionIO io, VisionIO.VisionInputs inputs) {

//exit if off the field, or too far above or below the ground
if(
inputs.botPose3d.getX() < -fieldBorderMargin
|| inputs.botPose3d.getX() > fieldBorderMargin + FIELD_LENGTH_METERS
|| inputs.botPose3d.getY() < -fieldBorderMargin
|| inputs.botPose3d.getY() > fieldBorderMargin + FIELD_WIDTH_METERS
|| inputs.botPose3d.getZ() < -0.4
|| inputs.botPose3d.getZ() > 0.1
inputs.botPose2d.getX() < -fieldBorderMargin
|| inputs.botPose2d.getX() > fieldBorderMargin + FIELD_LENGTH_METERS
|| inputs.botPose2d.getY() < -fieldBorderMargin
|| inputs.botPose2d.getY() > fieldBorderMargin + FIELD_WIDTH_METERS
) return;

//exit if rotation doesn't match gyro measurement
Expand Down

0 comments on commit d6303fd

Please sign in to comment.