Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
BytingBulldogs3539 committed May 5, 2024
1 parent 7516d5c commit 86756a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import { useSettingsStore } from "@/stores/settings/GeneralSettingsStore";
const settingsValid = ref(true);
const getUniqueVideoFormatsByResolution = (): VideoFormat[] => {
const uniqueResolutions: VideoFormat[] = [];
useCameraSettingsStore().currentCameraSettings.validVideoFormats.forEach((format, index) => {
Expand Down Expand Up @@ -53,8 +51,7 @@ const getUniqueVideoFormatsByResolution = (): VideoFormat[] => {
}
uniqueResolutions[existingIndex] = format;
}
}
else{
} else {
format.index = index;
const calib = useCameraSettingsStore().getCalibrationCoeffs(format.resolution);
Expand All @@ -81,7 +78,6 @@ const getUniqueVideoFormatsByResolution = (): VideoFormat[] => {
}
uniqueResolutions.push(format);
}
});
uniqueResolutions.sort(
(a, b) => b.resolution.width + b.resolution.height - (a.resolution.width + a.resolution.height)
Expand Down
2 changes: 1 addition & 1 deletion photon-client/src/stores/settings/CameraSettingsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export const useCameraSettingsStore = defineStore("cameraSettings", {
startPnPCalibration(
calibrationInitData: {
squareSizeIn: number;
markerSizeIn: number,
markerSizeIn: number;
patternWidth: number;
patternHeight: number;
boardType: CalibrationBoardTypes;
Expand Down

0 comments on commit 86756a4

Please sign in to comment.