
Re: programming a motor and a servo
Please ask this question in the VEX forums. Thanks
I just ran your code and didn't get an error message. When you post your question please describe the error message. Thanks
task main{
while(true){
motor[port2] = vexRT[Ch2]*3;
motor[port3] = vexRT[Ch3]*-3;
if(vexRT[Btn5U]==1)
{
motor[port4] = 60;
}
else if (vexRT[btn6U] ==1)
{
motor[port4] = -60;
}
else
{
motor[port4] = 0;
}
}
}