Motor Speed Value Recommendations in both Negative and Positive (ROBOTC)

Hello there viewer.

I am coding the functions for my tray lift and my claw and I am trying to find motor speed values that go (about) the same speed as other values that are moving the other direction. Here is an example of my code.

if(vexRT[Btn6D] == 1)
    	{
    		motor[port1] = -63.5;
    	}
    else if(vexRT[Btn6U] == 1)
    	{
    		motor[port1] = 63.5;
    	}
    else
    	{
    		motor[port1] = 0;
    	}

The problem I am trying to find out is to get the Btn6D motor value to be the same speed as the Btn6U motor value but in the negative factor.

I also wonder if there’s just something generally wrong, because at -63.5 speed, the claw jolts to grab whatever is in it’s way. (Most cases air.)

(Sorry if my formatting on this topic is confusing.)

I’ll try every given value out or just test certain theories. Thank you.

That should be correct, those values should result in the same motor speed, in opposite directions.

1 Like

Thank you for the reassurance. I’ll look further into this “problem.”

63 is about 1/2 the value of 127 the max, so the motor should move pretty slowly. You can experiment with making the number smaller, it should crawl along at 20.

The lift has gravity working in only one way (down). So dropping the lift will be faster than raising the lift.

2 Likes

Thanks for the advice! Especially for the lift, because I was thinking about that just a bit ago.