Remove unused private variable (#317)

This commit is contained in:
Tyler Veness
2021-11-21 17:30:03 -08:00
committed by GitHub
parent 5ca39e7f84
commit 5a13739818
3 changed files with 1 additions and 5 deletions

View File

@@ -25,7 +25,6 @@ import org.photonvision.targeting.PhotonTrackedTarget;
public class SimVisionSystem {
SimPhotonCamera cam;
double camDiagFOVDegrees;
double camHorizFOVDegrees;
double camVertFOVDegrees;
double cameraHeightOffGroundMeters;
@@ -71,7 +70,6 @@ public class SimVisionSystem {
int cameraResWidth,
int cameraResHeight,
double minTargetArea) {
this.camDiagFOVDegrees = camDiagFOVDegrees;
this.camPitchDegrees = camPitchDegrees;
this.cameraToRobot = cameraToRobot;
this.cameraHeightOffGroundMeters = cameraHeightOffGroundMeters;

View File

@@ -32,8 +32,7 @@ SimVisionSystem::SimVisionSystem(const std::string& name,
units::meter_t cameraHeightOffGround,
units::meter_t maxLEDRange, int cameraResWidth,
int cameraResHeight, double minTargetArea)
: camDiagFOV(camDiagFOV),
camPitch(camPitch),
: camPitch(camPitch),
cameraToRobot(cameraToRobot),
cameraHeightOffGround(cameraHeightOffGround),
maxLEDRange(maxLEDRange),

View File

@@ -50,7 +50,6 @@ class SimVisionSystem {
void ProcessFrame(frc::Pose2d robotPose);
private:
units::degree_t camDiagFOV;
units::degree_t camPitch;
frc::Transform2d cameraToRobot;
units::meter_t cameraHeightOffGround;