new internal concept: operating mode. will allow for more UI and separate pages to be made to operate things other than rovers. Converted PTZ to new system.

This commit is contained in:
legop3
2026-09-22 14:42:21 -04:00
parent e750712a39
commit 846c9dae55
24 changed files with 236 additions and 336 deletions
+2 -2
View File
@@ -20,9 +20,8 @@ function getIdentitySurface() {
*/
return window.location.pathname === '/'
|| window.location.pathname === '/old'
|| window.location.pathname === '/ptz'
? 'driver'
: 'passive';
: window.location.pathname === '/ptz' ? 'ptz' : 'passive';
}
async function buildSocketIdentity() {
@@ -43,6 +42,7 @@ async function buildSocketIdentity() {
audioAdjustments: currentSettings?.audioAdjustments || {},
overseerEnabled: Boolean(currentSettings?.overseerPreference?.enabled),
identitySurface: getIdentitySurface(),
operatingMode: window.location.pathname === '/ptz' ? 'ptz' : 'rover',
};
}