mirror of https://github.com/Hypfer/Valetudo.git
16 lines
384 B
JavaScript
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;
|