Were using NEO motors and the .setrefrence method to drive them to position and it just spins in circles. Here is the code does anyone know what is going wrong?
double P = 10;
double I = 0;
double D = .5;
drive1.setP(P);
drive1.setI(I);
drive1.setD(D);
drive1.setIZone(0);
drive1.setFF(0);
drive1.setOutputRange(-.25, .25);
drive2.setP(P);
drive2.setI(I);
drive2.setD(D);
drive2.setIZone(0);
drive2.setFF(0);
drive2.setOutputRange(-.25, .25);
drive3.setP(P);
drive3.setI(I);
drive3.setD(D);
drive3.setIZone(0);
drive3.setFF(0);
drive3.setOutputRange(-.25, .25);
drive4.setP(P);
drive4.setI(I);
drive4.setD(D);
drive4.setIZone(0);
drive4.setFF(0);
drive4.setOutputRange(-.25, .25);
double ticks = 100;
SmartDashboard.putNumber("ticks", ticks);
drive1.setReference(-ticks, ControlType.kPosition);
drive2.setReference(ticks, ControlType.kPosition);
drive3.setReference(ticks, ControlType.kPosition);
drive4.setReference(-ticks, ControlType.kPosition);