Quote:
Originally Posted by NickE
The code i put above would scale the input to the output. To limit it without scaling, do something like this:
Code:
if(vexRT[Ch1]>80){
motor[port1] = 80;
}else if(vexRT[Ch1]<-80){
motor[port1] = -80;
}else{
motor[port1] = vexRT[Ch1];
}
|
i will try and see if i can make this into FTC code thanks.