Skip to content

Commit 66ff364

Browse files
committed
remove lighting settings
1 parent 671ee8f commit 66ff364

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

photon-client/src/stores/settings/GeneralSettingsStore.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
import { defineStore } from "pinia";
2-
import type {
3-
ConfigurableNetworkSettings,
4-
GeneralSettings,
5-
LightingSettings,
6-
MetricData,
7-
NetworkSettings
8-
} from "@/types/SettingTypes";
2+
import type { ConfigurableNetworkSettings, GeneralSettings, MetricData, NetworkSettings } from "@/types/SettingTypes";
93
import { NetworkConnectionType } from "@/types/SettingTypes";
4+
import { useStateStore } from "@/stores/StateStore";
105
import axios from "axios";
116
import type { WebsocketSettingsUpdate } from "@/types/WebsocketDataTypes";
127

138
interface GeneralSettingsStore {
149
general: GeneralSettings;
1510
network: NetworkSettings;
16-
lighting: LightingSettings;
1711
metrics: MetricData;
1812
currentFieldLayout;
1913
}
@@ -48,10 +42,6 @@ export const useSettingsStore = defineStore("settings", {
4842
],
4943
networkingDisabled: false
5044
},
51-
lighting: {
52-
supported: true,
53-
brightness: 0
54-
},
5545
metrics: {
5646
cpuTemp: undefined,
5747
cpuUtil: undefined,
@@ -112,7 +102,6 @@ export const useSettingsStore = defineStore("settings", {
112102
conflictingHostname: data.general.conflictingHostname || false,
113103
conflictingCameras: data.general.conflictingCameras || ""
114104
};
115-
this.lighting = data.lighting;
116105
this.network = data.networkSettings;
117106
this.currentFieldLayout = data.atfl;
118107
},

photon-client/src/types/SettingTypes.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,6 @@ export interface VsmState {
115115
allConnectedCameras: PVCameraInfo[];
116116
}
117117

118-
export interface LightingSettings {
119-
supported: boolean;
120-
brightness: number;
121-
}
122-
123118
export enum LogLevel {
124119
ERROR = 0,
125120
WARN = 1,

photon-client/src/types/WebsocketDataTypes.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type {
22
CameraCalibrationResult,
33
GeneralSettings,
4-
LightingSettings,
54
LogLevel,
65
MetricData,
76
NetworkSettings,
@@ -20,7 +19,6 @@ export interface WebsocketLogMessage {
2019
}
2120
export interface WebsocketSettingsUpdate {
2221
general: Required<GeneralSettings>;
23-
lighting: Required<LightingSettings>;
2422
networkSettings: NetworkSettings;
2523
atfl: AprilTagFieldLayout;
2624
}

0 commit comments

Comments
 (0)