Motors Stuttering

Our team found out that we needed our accumulator to go down. But, as soon as I put the code in it becomes jumpy/stutters (it goes down fine, but will not come up). When I take that part of the code out it will work fine… Also if you need it motor port 8 is the accumulator (6 & 7 are the intake rollers, 2, 3,4 & 5 are the ball shooter). I need a answer soon if you have it, please help me! :slight_smile: (By the way all the }'s are in there at the bottom you just can’t see them).
Captured.JPG

You need an additional “else”, something like this.

if( vexRT Btn6U ] )
  {
  // control motors
  }
else
if( vexRT Btn6D ] )
  {
  // control motors
  }
else
  {
  // control motors
  }

You need to make sure that only one conditional statement can control the motors each time around the loop.

See this for more (post #4)
https://vexforum.com/t/robotc-bad-programming-habits/28357/1