mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-25 01:41:40 +00:00
[PhotonClient] Vite and Typescript complete refactor (#884)
This commit is contained in:
@@ -455,9 +455,15 @@ public class VisionModule {
|
||||
void saveAndBroadcastSelective(WsContext originContext, String propertyName, Object value) {
|
||||
logger.trace("Broadcasting PSC mutation - " + propertyName + ": " + value);
|
||||
saveModule();
|
||||
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
HashMap<String, Object> subMap = new HashMap<>();
|
||||
subMap.put(propertyName, value);
|
||||
map.put("cameraIndex", this.moduleIndex);
|
||||
map.put("mutatePipelineSettings", subMap);
|
||||
|
||||
DataChangeService.getInstance()
|
||||
.publishEvent(
|
||||
OutgoingUIEvent.wrappedOf("mutatePipeline", propertyName, value, originContext));
|
||||
.publishEvent(new OutgoingUIEvent<>("mutatePipeline", map, originContext));
|
||||
}
|
||||
|
||||
public void setCameraNickname(String newName) {
|
||||
|
||||
Reference in New Issue
Block a user