Skip to content

Unable to use SwitchReactor #62

Closed
Closed

Description

@bdavies01

When we try to use SwitchReactor, it doesn't seem to call the command at all.

protected SwitchReactor reactor = Strongback.switchReactor();
We set up the SwitchReactor one time as:
reactor.onTriggered(input.getDriveStick().getTrigger(), () -> Strongback.submit(new ToggleGears(this)));

The command itself has been verified to be working when being manually submitted to the Strongback queue, so the lambda function is not being called as far as we can tell. This did not work with a direct print to the console nor using a direct command with a lambda function. This failed both with MockFlightSticks that we wrote and forcefully triggered, and with real joysticks on the robot as well.

Activity

  1. rhauch commented on Feb 9, 2016

    @rhauch
    Member

    @bdavies01: is this the same as #60? If so, then this is a duplicate.

  2. bdavies01 commented on Feb 9, 2016

    @bdavies01
    Author

    Sorry, we didn't realize that SwitchReactor was of type AsyncSwitchReactor and assumed this was a different issue. Do you have an estimated fix-time or suggested work-around? Our current plan is to repeatedly check Joystick values during an update cycle.

  3. xortive commented on Feb 10, 2016

    @xortive

    My open pull request that references #60 fixes AsyncSwitchReactor

    Sent from my iPhone

    On Feb 9, 2016, at 6:30 PM, Bert Davies notifications@github.com wrote:

    Sorry, we didn't realize that SwitchReactor was of type AsyncSwitchReactor and assumed this was a different issue. Do you have an estimated fix-time or suggested work-around? Our current plan is to repeatedly check Joystick values during an update cycle.

    —
    Reply to this email directly or view it on GitHub.

  4. rhauch commented on Feb 10, 2016

    @rhauch
    Member

    Closing as a duplicate of #60.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions