mirror of https://github.com/Hypfer/Valetudo.git
37 lines
824 B
JavaScript
37 lines
824 B
JavaScript
const PetObstacleAvoidanceControlCapability = require("../../../core/capabilities/PetObstacleAvoidanceControlCapability");
|
|
|
|
/**
|
|
* @extends PetObstacleAvoidanceControlCapability<import("../MockRobot")>
|
|
*/
|
|
class MockPetObstacleAvoidanceControlCapability extends PetObstacleAvoidanceControlCapability {
|
|
/**
|
|
* @param {object} options
|
|
* @param {import("../MockRobot")} options.robot
|
|
*/
|
|
constructor(options) {
|
|
super(options);
|
|
|
|
this.enabled = true;
|
|
}
|
|
|
|
async isEnabled() {
|
|
return this.enabled;
|
|
}
|
|
|
|
/**
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async enable() {
|
|
this.enabled = true;
|
|
}
|
|
|
|
/**
|
|
* @returns {Promise<void>}
|
|
*/
|
|
async disable() {
|
|
this.enabled = false;
|
|
}
|
|
}
|
|
|
|
module.exports = MockPetObstacleAvoidanceControlCapability;
|