plugins: add triggered conveyor belt (real)#16
Open
moriarty wants to merge 3 commits intorockin-robot-challenge:rockinfrom
Open
plugins: add triggered conveyor belt (real)#16moriarty wants to merge 3 commits intorockin-robot-challenge:rockinfrom
moriarty wants to merge 3 commits intorockin-robot-challenge:rockinfrom
Conversation
Contributor
Author
|
@svenschneider I just saw your comment on #13 I will check the locking, because that will effect this (and every) plugin. |
- configuration of plugin set to simulation mode - fixes problem with adding multiple of copies of the same object to inventory - requires pull request rockin-robot-challenge/at_work_networked_device#4
- adds to ConveyorBeltCommand proto
- reset: set to true to reset the TCB
- next_cycle: the expected next cycle
- adds to ConveyorBeltStatus proto
- cycle: the current cycle
- in TriggeredConveyorBeltThread::init
- use host_ip_address from config instead of hardcoded "eth0"
- setConveyorBeltRunMode to stop & reset
- in TriggeredConveyorBeltThread::loop
- if send_conveyor_command is set and cycle matches expectation
- send conveyor command
- else if send_reset_command is still set
- send conveyor command ( this is for the case when the one in init was lost )
- in TriggeredConveyorBeltThread::clips start/stop belt
- set requested_run_mode and send_conveyor_command flag
- in TriggeredConveyorBeltThread::receiveAndBufferConveyorStatusMsg
- if cycle in received status matches expecation
- increase cycle
- reset send_conveyor_command_ flag
- reset send_reset_command_ flag
- else if TCB is ahead of expectation
- set sent_reset_command flag
42f1701 to
5de7186
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rockin-robot-challenge/at_work_networked_device#4 to fix issue were extra faulty plate added.