Skip to content

Commit

Permalink
Revert "Add checking of current and requested video_mode (#859)"
Browse files Browse the repository at this point in the history
This reverts commit 013ff5e.
  • Loading branch information
srimanachanta authored and Matthew Morley committed Jul 20, 2023
1 parent 715ef62 commit 608ba1a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 40 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public boolean getDriverMode() {
/**
* Sorts the pipeline list by index, and reassigns their indexes to match the new order. <br>
* <br>
* I don't like this but I have no other ideas, and it works so ¯\_(ツ)_/¯
* I don't like this but I have no other ideas, and it works so
*/
private void reassignIndexes() {
userPipelineSettings.sort(PipelineSettingsIndexComparator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.photonvision.common.configuration.CameraConfiguration;
import org.photonvision.common.logging.LogGroup;
import org.photonvision.common.logging.Logger;
import org.photonvision.common.util.vision.OpenCvUtils;
import org.photonvision.vision.calibration.CameraCalibrationCoefficients;
import org.photonvision.vision.frame.FrameStaticProperties;

Expand Down Expand Up @@ -64,11 +63,6 @@ public void setVideoModeInternal(int index) {
}

public void setVideoMode(VideoMode mode) {
if (OpenCvUtils.videoModeEquals(mode, getCurrentVideoMode())) {
logger.info("Requested video mode is already the current video mode");
return;
}

logger.info(
"Setting video mode to "
+ "FPS: "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#pragma once

#include <algorithm>
#include <functional>
#include <memory>
#include <string>
#include <vector>
Expand Down

0 comments on commit 608ba1a

Please sign in to comment.