Modkit Drivetrain Struggle


#1

New here and new to Vex. I’ve been doing embedded controls a long time but scratching my head stepping back to this block code. Trying to work with my kids.

Anyway, Trying to setup the joysticks to drive the thing. I know you can do that easily. But I’m trying to set it up so that there is speed control “turbo” mode and slow mode. I got the variable for turbo working, but the way I have the code for the drivetrain laid out doesn’t work. It cannot accept a turn and forward or reverse command at the same time. It can only turn when stopped and it can only move forward when not turning. Does this make sense?

I’m sure there are some amateur errors in there.

drivetrain.jpeg


#2

Well I was WAAAAAY over complicating this.

Just needed to add some simple commands to the controller then delete the drivetrain and add left and right motors… Man I feel dumb

c24f2242d9292e481c3e195944718652.jpg

09b40ec15b703318b4059d0b4d98c540.jpeg

06d091bc342e45486dc60b52aff19256.jpeg


#3

Yeah. I learned you can skip the whole’ reverse thing’. The negative joystick values for velocity take care of motor reversing.