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

bug: missing check to power hatch #21

Open
Krogsager opened this issue Jul 18, 2017 · 1 comment
Open

bug: missing check to power hatch #21

Krogsager opened this issue Jul 18, 2017 · 1 comment

Comments

@Krogsager
Copy link

If the robot is asked to explore while the trap is open, the robot will say it has finished exploring before it is started.
A fix could be to insert the following as initialization

if self.isHatchOpen():
            self.tts.say("I can't move when my power hatch is open")

            while self.isHatchOpen():
                sleep(1)
@lsouchet
Copy link
Collaborator

This is right, you can use the ALMemory key BatteryTrapIsOpen for this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants