View Single Post
  #2   Spotlight this post!  
Unread 20-01-2016, 09:41
schleprock's Avatar
schleprock schleprock is offline
Code Jockey
FRC #4905 (AndromedaOne)
Team Role: Mentor
 
Join Date: Feb 2015
Rookie Year: 2014
Location: massachusetts
Posts: 21
schleprock is an unknown quantity at this point
Unhappy 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....
Reply With Quote