Skip to content
Discussion options

You must be logged in to vote

Nice work!

In this variant, instead of having a separate task, it seems like you could simply replace if drive with simply if xbox y is pressed to get the desired outcome.

I don't think your separate task is having the intended effect. Currently, while Y is pressed, the drive variable is switched thousands of times per second. If you do keep it that way, you'd probably want to add a wait until not pressed after the switch.

Also, perhaps inside the switch on the left, you'd probably want to include blocks in either branch to stop the other motor.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@laurensvalk
Comment options

Answer selected by corticalstack
Comment options

You must be logged in to vote
2 replies
@MrLuboG
Comment options

@laurensvalk
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants