Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MockCarpetModeControlCapability #759

Merged
merged 1 commit into from
Mar 21, 2021

Conversation

ccoors
Copy link
Contributor

@ccoors ccoors commented Mar 20, 2021

MockRobot features

Type A:

  • Bug fix (non-breaking change which fixes an issue)
  • Refactor/Code Cleanup
  • Docs
  • Capability implementation for existing core capability
  • New robot implementation

Type B:

  • New capability
  • New core feature

Description (Type A)

Adds the MockCarpetModeControlCapability

@alexkn
Copy link
Contributor

alexkn commented Mar 20, 2021

Why do we need a persistent state?

@ccoors
Copy link
Contributor Author

ccoors commented Mar 20, 2021

Well, for instance, the initial idea was that if you want to debug an issue that only occurs eg. when the robot is cleaning, the battery is < 50 % and the carpet detection is off, you only have to get your virtual robot into that state once. When you restart Valetudo the previous state is restored.

Idk if it is useful, it's up for discussion.

@alexkn
Copy link
Contributor

alexkn commented Mar 21, 2021

For this I would not implement a dynamically saved state, but rather multiple config parameters in the implementationSpecificConfig, to bring the robot into a defined state on startup.

What do you think @Hypfer ?

Maybe you should split the PR, MockCarpetModeControlCapability is ok to merge.

@Hypfer
Copy link
Owner

Hypfer commented Mar 21, 2021

+1 to that

@ccoors ccoors force-pushed the feature/mock-robot-enhancements branch from 3e74405 to 93ce09f Compare March 21, 2021 20:56
@ccoors
Copy link
Contributor Author

ccoors commented Mar 21, 2021

Yeah, you are right. Removed that second commit.

@ccoors ccoors changed the title MockRobot features MockCarpetModeControlCapability Mar 21, 2021
@Hypfer Hypfer merged commit 5bd5fb7 into Hypfer:master Mar 21, 2021
@ccoors ccoors deleted the feature/mock-robot-enhancements branch March 21, 2021 21:05
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants