Skip to content

Commit

Permalink
RLI cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Sep 6, 2024
1 parent db9cc4b commit d79c8d5
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
6 changes: 3 additions & 3 deletions docs/source/docs/examples/aimandrange.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ To do this, we'll use the *pitch* of the target in the camera image and trigonom
.. tab-item:: Java
.. rli:: https://raw.githubusercontent.com/PhotonVision/photonvision/06f0f7d66f68f43e7e461bce672b07e9d2954cda/photonlib-java-examples/aimandrange/src/main/java/frc/robot/Robot.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/aimandrange/src/main/java/frc/robot/Robot.java
:language: java
:lines: 41-98
:lines: 84-131
:linenos:
:lineno-start: 41
:lineno-start: 84
.. tab-item:: C++ (Header)
Expand Down
6 changes: 3 additions & 3 deletions docs/source/docs/examples/aimingatatarget.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ In this example, while the operator holds a button down, the robot will turn tow
.. tab-item:: Java
.. rli:: https://raw.githubusercontent.com/PhotonVision/photonvision/06f0f7d66f68f43e7e461bce672b07e9d2954cda/photonlib-java-examples/aimattarget/src/main/java/frc/robot/Robot.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/aimattarget/src/main/java/frc/robot/Robot.java
:language: java
:lines: 41-98
:lines: 79-114
:linenos:
:lineno-start: 41
:lineno-start: 79
.. tab-item:: C++ (Header)
Expand Down
38 changes: 19 additions & 19 deletions docs/source/docs/examples/poseest.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ We use the 2024 game's AprilTag Locations:
.. tab-item:: Java
:sync: java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Constants.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Vision.java
:language: java
:lines: 83-106
:lines: 68-68
:linenos:
:lineno-start: 83
:lineno-start: 68
```

Expand All @@ -43,27 +43,27 @@ To incorporate PhotonVision, we need to create a {code}`PhotonCamera`:
.. tab-item:: Java
:sync: java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Constants.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Vision.java
:language: java
:lines: 83-106
:lines: 57-57
:linenos:
:lineno-start: 83
:lineno-start: 57
```

During periodic execution, we read back camera results. If we see AprilTags in the image, we calculate the camera-measured pose of the robot and pass it to the {code}`SwerveDrivePoseEstimator`.
During periodic execution, we read back camera results. If we see AprilTags in the image, we calculate the camera-measured pose of the robot and pass it to the {code}`Drivetrain`.

```{eval-rst}
.. tab-set::
.. tab-item:: Java
:sync: java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Constants.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Robot.java
:language: java
:lines: 83-106
:lines: 64-74
:linenos:
:lineno-start: 83
:lineno-start: 64
```

Expand All @@ -77,11 +77,11 @@ First, we create a new {code}`VisionSystemSim` to represent our camera and copro
.. tab-item:: Java
:sync: java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Constants.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Vision.java
:language: java
:lines: 83-106
:lines: 65-69
:linenos:
:lineno-start: 83
:lineno-start: 65
```

Expand All @@ -93,11 +93,11 @@ Then, we add configure the simulated vision system to match the camera system be
.. tab-item:: Java
:sync: java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Constants.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/d6c37ead118ae58d224c0c4fd7f7a2b7931940b5/photonlib-java-examples/poseest/src/main/java/frc/robot/Vision.java
:language: java
:lines: 83-106
:lines: 69-82
:linenos:
:lineno-start: 83
:lineno-start: 69
```

Expand All @@ -112,11 +112,11 @@ During simulation, we periodically update the simulated vision system.
.. tab-item:: Java
:sync: java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/80e16ece87c735e30755dea271a56a2ce217b588/photonlib-java-examples/poseest/src/main/java/frc/robot/DrivetrainSim.java
.. rli:: https://raw.githubusercontent.com/gerth2/photonvision/80e16ece87c735e30755dea271a56a2ce217b588/photonlib-java-examples/poseest/src/main/java/frc/robot/Robot.java
:language: java
:lines: 138-139
:lines: 114-132
:linenos:
:lineno-start: 138
:lineno-start: 114
```

Expand Down

0 comments on commit d79c8d5

Please sign in to comment.