int turnside(float turns,float speed) {
RF.startRotateFor(turns, rev, speed, rpm);
FL.startRotateFor(-turns, rev, speed, rpm);
LB.startRotateFor(-turns, rev, speed, rpm);
ML.startRotateFor(-turns, rev, speed, rpm);
RB.startRotateFor(turns, rev ,speed, rpm);
RM.startRotateFor(turns, rev, speed, rpm);
return 0;
}
I have this function which I use in the autonomous like this:
task turnning(turnside);
But for some reason I get an error. The only way to remove the error is to remove the condition on the int. But I dont like this because then I can’t set the distance and speed. Does anyone know how to fix it?
edit: code tags added by mods