Valetudo/backend/lib/robots/viomi/capabilities/ViomiLocateCapability.js

16 lines
384 B
JavaScript

const LocateCapability = require("../../../core/capabilities/LocateCapability");
/**
* @extends LocateCapability<import("../ViomiValetudoRobot")>
*/
class ViomiLocateCapability extends LocateCapability {
/**
* @returns {Promise<void>}
*/
async locate() {
await this.robot.sendCommand("set_resetpos", [1]);
}
}
module.exports = ViomiLocateCapability;