Skip to content

Commit c343543

Browse files
committed
remove lighting settings
1 parent 671ee8f commit c343543

File tree

3 files changed

+1
-20
lines changed

3 files changed

+1
-20
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
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";
104
import axios from "axios";
115
import type { WebsocketSettingsUpdate } from "@/types/WebsocketDataTypes";
126

137
interface GeneralSettingsStore {
148
general: GeneralSettings;
159
network: NetworkSettings;
16-
lighting: LightingSettings;
1710
metrics: MetricData;
1811
currentFieldLayout;
1912
}
@@ -48,10 +41,6 @@ export const useSettingsStore = defineStore("settings", {
4841
],
4942
networkingDisabled: false
5043
},
51-
lighting: {
52-
supported: true,
53-
brightness: 0
54-
},
5544
metrics: {
5645
cpuTemp: undefined,
5746
cpuUtil: undefined,
@@ -112,7 +101,6 @@ export const useSettingsStore = defineStore("settings", {
112101
conflictingHostname: data.general.conflictingHostname || false,
113102
conflictingCameras: data.general.conflictingCameras || ""
114103
};
115-
this.lighting = data.lighting;
116104
this.network = data.networkSettings;
117105
this.currentFieldLayout = data.atfl;
118106
},

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)