mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
overseer v2 3
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
id: 'lift_down',
|
||||
signature: 'lift_down()',
|
||||
availability(ctx = {}) {
|
||||
const mode = String(ctx.mode || '');
|
||||
@@ -9,4 +10,8 @@ module.exports = {
|
||||
if (ctx.liftState?.busy) return { available: false, reason: 'busy' };
|
||||
return { available: true, reason: null };
|
||||
},
|
||||
async execute({ liftService, actor = 'overseerControl' }) {
|
||||
const resp = await liftService.moveDown(actor);
|
||||
return { ok: true, resp };
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user