mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
Run multitag on coprocessor (#816)
This commit is contained in:
@@ -24,7 +24,7 @@ interface StateStore {
|
||||
logMessages: LogMessage[];
|
||||
currentCameraIndex: number;
|
||||
|
||||
pipelineResults?: PipelineResult;
|
||||
backendResults: Record<string, PipelineResult>;
|
||||
|
||||
colorPickingMode: boolean;
|
||||
|
||||
@@ -58,7 +58,7 @@ export const useStateStore = defineStore("state", {
|
||||
logMessages: [],
|
||||
currentCameraIndex: 0,
|
||||
|
||||
pipelineResults: undefined,
|
||||
backendResults: {},
|
||||
|
||||
colorPickingMode: false,
|
||||
|
||||
@@ -77,6 +77,11 @@ export const useStateStore = defineStore("state", {
|
||||
}
|
||||
};
|
||||
},
|
||||
getters: {
|
||||
currentPipelineResults(): PipelineResult | undefined {
|
||||
return this.backendResults[this.currentCameraIndex.toString()];
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
setSidebarFolded(value: boolean) {
|
||||
this.sidebarFolded = value;
|
||||
@@ -95,12 +100,11 @@ export const useStateStore = defineStore("state", {
|
||||
clients: data.clients
|
||||
};
|
||||
},
|
||||
updatePipelineResultsFromWebsocket(data: WebsocketPipelineResultUpdate) {
|
||||
for (const cameraIndex in data) {
|
||||
if (parseInt(cameraIndex) === this.currentCameraIndex) {
|
||||
this.pipelineResults = data[cameraIndex];
|
||||
}
|
||||
}
|
||||
updateBackendResultsFromWebsocket(data: WebsocketPipelineResultUpdate) {
|
||||
this.backendResults = {
|
||||
...this.backendResults,
|
||||
...data
|
||||
};
|
||||
},
|
||||
updateCalibrationStateValuesFromWebsocket(data: WebsocketCalibrationData) {
|
||||
this.calibrationData = {
|
||||
|
||||
Reference in New Issue
Block a user