Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
Python/__pycache__/WebSiteHandler\.cpython-37\.pyc

\.idea/

*.pyc

Python/app/__pycache__/

Python/app/handlers/__pycache__/

\.vscode/
__pycache__/

/.vs

backend/settings/
/.vscode/
.vscode/
# Docs
source/_build
source/docs/_build
# Compiled class file
*.class

Expand Down Expand Up @@ -109,7 +104,6 @@ fabric.properties

# Temporary build files
**/.gradle
**/target
**/src/main/java/META-INF
**/.settings
**/.classpath
Expand All @@ -125,8 +119,6 @@ compile_commands.json
.clangd/
.cache/

New client/photon-client/*

*.prefs
*.jfr
.DS_Store
Expand All @@ -146,11 +138,12 @@ photonlib-cpp-examples/*/vendordeps/*
photonlib-cpp-examples/*/networktables.json.bck
photonlib-java-examples/*/networktables.json.bck
*.sqlite
photon-server/src/main/resources/web/*
venv
.venv/*
.venv
networktables.json

website/node_modules
website/dist
# Web stuff
photon-server/src/main/resources/web/*
node_modules
dist
components.d.ts
9 changes: 0 additions & 9 deletions docs/.gitignore

This file was deleted.

20 changes: 0 additions & 20 deletions photon-client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
components.d.ts
13 changes: 0 additions & 13 deletions photon-core/.gitignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

import java.util.ArrayList;
Expand All @@ -26,7 +27,6 @@
import org.photonvision.vision.pipe.impl.NeuralNetworkPipeResult;

public class PotentialTarget implements Releasable {

public final Contour m_mainContour;
public final List<Contour> m_subContours;
public final CVShape shape;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

public enum RobotOffsetPointMode {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

public enum RobotOffsetPointOperation {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

import org.opencv.calib3d.Calib3d;
Expand All @@ -27,7 +28,6 @@
import org.photonvision.vision.opencv.DualOffsetValues;

public class TargetCalculations {

/**
* Calculates the yaw and pitch of a point in the image. Yaw and pitch must be calculated together
* to account for perspective distortion. Yaw is positive right, and pitch is positive up.
Expand All @@ -49,7 +49,6 @@ public static DoubleCouple calculateYawPitch(
double targetCenterY,
double verticalFocalLength,
CameraCalibrationCoefficients cameraCal) {

if (cameraCal != null) {
// undistort
MatOfPoint2f temp = new MatOfPoint2f(new Point(targetCenterX, targetCenterY));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

import com.fasterxml.jackson.annotation.JsonAlias;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

public enum TargetOffsetPointEdge {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

public enum TargetOrientation {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

import edu.wpi.first.apriltag.AprilTagDetection;
Expand Down Expand Up @@ -502,7 +503,6 @@ public TargetCalculationParameters(
double verticalFocalLength,
double imageArea,
CameraCalibrationCoefficients cal) {

this.isLandscape = isLandscape;
this.targetOffsetPointEdge = targetOffsetPointEdge;
this.robotOffsetPointMode = robotOffsetPointMode;
Expand All @@ -522,7 +522,6 @@ public TargetCalculationParameters(
Point robotOffsetSinglePoint,
DualOffsetValues dualOffsetValues,
FrameStaticProperties frameStaticProperties) {

this.isLandscape = isLandscape;
this.targetOffsetPointEdge = targetOffsetPointEdge;
this.robotOffsetPointMode = robotOffsetPointMode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down Expand Up @@ -41,7 +42,6 @@
import org.photonvision.vision.opencv.DualOffsetValues;

public class TargetCalculationsTest {

private static Size imageSize = new Size(1280, 720);
private static Point imageCenterPoint =
new Point(imageSize.width / 2.0 - 0.5, imageSize.height / 2.0 - 0.5);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package org.photonvision.vision.target;

import static org.junit.jupiter.api.Assertions.assertEquals;
Expand Down
13 changes: 0 additions & 13 deletions photon-server/.gitignore

This file was deleted.

11 changes: 0 additions & 11 deletions photon-targeting/.gitignore

This file was deleted.

Loading