Skip to content

Commit

Permalink
feat(MockRobot): add returning state to BasicControlCapability
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkn authored and Hypfer committed Mar 14, 2021
1 parent a070c4f commit 721cd78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/robots/mock/capabilities/MockBasicControlCapability.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ class MockBasicControlCapability extends BasicControlCapability {
}

async home() {
this.StateAttr.value = stateAttrs.StatusStateAttribute.VALUE.DOCKED;
this.StateAttr.value = stateAttrs.StatusStateAttribute.VALUE.RETURNING;
setTimeout(() => {
this.StateAttr.value = stateAttrs.StatusStateAttribute.VALUE.DOCKED;
}, 10 * 1000);
}
}

Expand Down

0 comments on commit 721cd78

Please sign in to comment.