Hello, new here.
I am trying to write a block code that allows the drivetrain to reverse in one button click. I wrote a toggle code that works, but the Reversing doesnt work.
I wrote it so that
whenever it toggles, it sets a variable to 1 then 0,
I added a while code so it runs the “drive forward” or “drive reverse” if the variable is one or zero. So whenever you click the controller button A, It reverses controller commands so when you do the controller up, it goes reverse and the other way around. feel free to ask anything you didn’t understand.
I am a new user so I couldn’t upload the blocks file. I am instead pasting a anonfile link here.