Yeah. It’s actually a six motor tank drive, but the rear motors are y-cabled together, making it appear as a 4 motor drive. I think I see what you are saying (I really am new to programming, especially on EasyC). I’m not so much worried about the single user/partner control as I am the reversible drive (although, if I figure one out, the other should follow in suit). I found myself wasting close to 15 seconds trying to figure out which side was which on the robot, I forgot every single time that I turned the robot around.
Our robot is designed to be an aid to the typical stacker/scorer robot. We play defense. Mean defense. Our strategy is to push the entire centre stack of blocks to the corner with the high goals, and then either simply play guard over the other alliance, or to begin scoring ground/cube stacking goals. So, for the most part, I drive forward for 30 seconds, then in reverse for 1:15. I do not, however, just want to reverse the controls permanently. The beginning phase is too tricky to be trying to remember which side is which. I’m really looking for a push-button toggle between two user functions. I would be shocked if there was no way to do this. I know that, in RobotC, the programming seemed a little more open-sourced. This made it more difficult usually, but could have come in handy at times like this. The code would Ideally go something like this…
If. Ch. 7D = 1;
(some type of code to alternate between two variables A & B)
A. Forward Control
B. Reverse Control
Hopefully saying that, If the button is pushed, then the variables A & B alternate, and when the button is released, nothing more happens. Like scrolling through a menu with a single button. Again, I’m not sure if this is feasible, but it would have to be something that I could alter in-match.
As for the single user control/partner control:
I already have both of these control codes written in as user functions. When I have my partner with me, I just open up the code real quick, drag the partner control function into the Driver Control portion of EasyC, and go. Then, when she leaves, I open up the code again, switch back to single user control, compile and download, and go. I just would like to be able to make use of some of these unused buttons on the joystick, so I don’t have to open up the program every time she has to leave the room.
I’ll throw some pictures of our bot up here for reference, if someone can explain to me how.