mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
this is a big slop that might backfire lol... new config system and UI!
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Kinect Configuration
|
||||
// Purpose: Defines optional Kinect capture and cooldown behavior.
|
||||
// Scope: Contains configuration metadata only and never opens the native worker.
|
||||
const { strictObject, boolean, integer } = require('../../configuration/schemaHelpers');
|
||||
|
||||
module.exports = {
|
||||
key: 'kinect',
|
||||
feature: true,
|
||||
defaultValue: { enabled: false, captureCooldownMs: 10000 },
|
||||
schema: strictObject({
|
||||
enabled: boolean(),
|
||||
captureCooldownMs: integer({ minimum: 0, maximum: 3600000 }),
|
||||
}, { title: 'Kinect', required: ['enabled', 'captureCooldownMs'] }),
|
||||
};
|
||||
@@ -1,7 +1,7 @@
|
||||
// Kinect Service
|
||||
// Purpose: Composes Kinect hardware capture and browser socket delivery.
|
||||
// Scope: Exposes session-readable state while keeping startup side effects in this service folder.
|
||||
const { loadConfig } = require('../../helpers/configLoader');
|
||||
const { loadConfig } = require('../../configuration');
|
||||
const hardware = require('./hardware');
|
||||
const { registerKinectSocketGateway, kinectEvents } = require('./socketGateway');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user