mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-15 03:02:17 -05:00
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:
@@ -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',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user