Re: amt10 odd behavior
here's the code from RobotMap that instantiates the encoder:
driveTrainRightQuadrature = new Encoder(0, 1, false, EncodingType.k1X);
LiveWindow.addSensor("DriveTrain", "RightQuadrature", driveTrainRightQuadrature);
driveTrainRightQuadrature.setDistancePerPulse(1.0) ;
driveTrainRightQuadrature.setPIDSourceParameter(PI DSourceParameter.kDistance);
driveTrainLeftQuadrature = new Encoder(2, 3, false, EncodingType.k1X);
also note that the behavior we are seeing is through the smartdashboard. we want to use this encoder via a PID controller and with the unusual output, we cannot get the PID controller to work properly.
has anyone been able to use the amt10 quadrature encoders to work with a PID controller using java as the language?
thanks....
|