Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Wait for motor to finish #24

Open
njsokalski opened this issue Feb 28, 2017 · 4 comments
Open

Wait for motor to finish #24

njsokalski opened this issue Feb 28, 2017 · 4 comments

Comments

@njsokalski
Copy link

I want to send a command (to turn a motor) and then wait for the motor to finish before doing anything else. Is there any way to:

  1. Raise an event when a motor stops. I know that the BrickChanged event is raised when a motor turns, but what I need is kind of the reverse of that, I need to know when a motor stops turning (sort of like a BrickNotChanged event)
    OR
  2. Detect whether a motor is turning (either a property of method)
    Without a way to be notified when a motor finishes, I'm not sure how to determine when I should start turning the next motor. Is there any way to do either of these things, or do you have any suggestions as to determine when to start the next motor (I don't have enough sensors to use that to determine when the motor finishes)? Thanks.
@BrianPeek
Copy link
Owner

If memory serves, the OutputReady command is designed for this. It will toggle when the motor starts and stops.

@njsokalski
Copy link
Author

njsokalski commented Feb 28, 2017 via email

@BrianPeek
Copy link
Owner

I believe it only exists in source, you'd have to pull down the project and build yourself...I haven't had the time to dedicate to keeping this maintained with release packages, unfortunately. :(

@njsokalski
Copy link
Author

njsokalski commented Mar 31, 2017 via email

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

No branches or pull requests

2 participants