Fixed Python code block being in C++ block (#1527)

This commit is contained in:
Kouyang07
2024-11-06 12:41:13 -05:00
committed by GitHub
parent a0b22cd8a3
commit a99a8e750b
3 changed files with 7 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ You can control the vision LEDs of supported hardware via PhotonLib using the `s
// Blink the LEDs.
camera.SetLED(photonlib::VisionLEDMode::kBlink);
.. code-block:: Python
.. code-block:: Python
# Coming Soon!
```

View File

@@ -62,7 +62,7 @@ You can also get the pipeline latency from a pipeline result using the `getLaten
// Get the pipeline latency.
units::second_t latency = result.GetLatency();
.. code-block:: Python
.. code-block:: Python
# Coming Soon!
```

View File

@@ -24,7 +24,7 @@ The API documentation can be found in here: [Java](https://github.wpilib.org/all
// The parameter for LoadAPrilTagLayoutField will be different depending on the game.
frc::AprilTagFieldLayout aprilTagFieldLayout = frc::LoadAprilTagLayoutField(frc::AprilTagField::k2024Crescendo);
.. code-block:: Python
.. code-block:: Python
# Coming Soon!
@@ -81,7 +81,7 @@ The PhotonPoseEstimator has a constructor that takes an `AprilTagFieldLayout` (s
photonlib::RobotPoseEstimator estimator(
aprilTags, photonlib::CLOSEST_TO_REFERENCE_POSE, cameras);
.. code-block:: Python
.. code-block:: Python
kRobotToCam = wpimath.geometry.Transform3d(
wpimath.geometry.Translation3d(0.5, 0.0, 0.5),
@@ -123,7 +123,9 @@ Calling `update()` on your `PhotonPoseEstimator` will return an `EstimatedRobotP
}
}
.. code-block:: Python
.. code-block:: Python
# Coming Soon!