File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
photon-core/src/main/java/org/photonvision/vision/target
photon-targeting/src/main/native/include/photon/targeting Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 19
19
import edu .wpi .first .apriltag .AprilTagDetection ;
20
20
import edu .wpi .first .apriltag .AprilTagPoseEstimate ;
21
21
import edu .wpi .first .math .geometry .Transform3d ;
22
- import edu .wpi .first .wpilibj .DriverStation ;
23
22
import java .util .ArrayList ;
24
23
import java .util .HashMap ;
25
24
import java .util .List ;
@@ -365,9 +364,6 @@ public boolean hasSubContours() {
365
364
}
366
365
367
366
public Transform3d getBestCameraToTarget3d () {
368
- if (m_bestCameraToTarget3d .equals (new Transform3d ())) {
369
- DriverStation .reportWarning ("3d mode is not enabled." , false );
370
- }
371
367
return m_bestCameraToTarget3d ;
372
368
}
373
369
Original file line number Diff line number Diff line change 22
22
#include < utility>
23
23
#include < vector>
24
24
25
- #include < frc/Errors.h>
26
25
#include < frc/geometry/Transform3d.h>
27
26
#include < wpi/SmallVector.h>
28
27
@@ -139,12 +138,7 @@ class PhotonTrackedTarget {
139
138
* reprojection error is the ambiguity, which is between 0 and 1.
140
139
* @return The pose of the target relative to the robot.
141
140
*/
142
- frc::Transform3d GetBestCameraToTarget () const {
143
- if (bestCameraToTarget == frc::Transform3d ()) {
144
- FRC_ReportError (frc::warn::Warning, " 3d mode is not enabled" );
145
- }
146
- return bestCameraToTarget;
147
- }
141
+ frc::Transform3d GetBestCameraToTarget () const { return bestCameraToTarget; }
148
142
149
143
/* *
150
144
* Get the transform that maps camera space (X = forward, Y = left, Z = up) to
You can’t perform that action at this time.
0 commit comments