View Single Post
  #1   Spotlight this post!  
Unread 03-03-2016, 09:35 PM
Ty Tremblay's Avatar
Ty Tremblay Ty Tremblay is online now
Robotics Engineer
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Alton NH
Posts: 815
Ty Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond reputeTy Tremblay has a reputation beyond repute
Re: Talon SRX in Position Mode Won't keep zero

From what I'm reading, I don't think setPosition(0) works in absolute mode. You should instead getPulseWidthPosition() when you hit the limit switch and return to that absolute position.

If you want to use setPosition you could instead use the magnetic encoder in quadrature mode.

The whole point of absolute mode is that you don't have to calibrate on boot-up.

Also, if you're using the CTRE magnetic encoder, you should select the feedback device with one of the following options.
Code:
shooterFlap.setFeedbackDevice(FeedbackDevice.CTREMagEncoder_Absolute);
or
Code:
shooterFlap.setFeedbackDevice(FeedbackDevice.CTREMagEncoder_Quadrature);
__________________

Last edited by Ty Tremblay : 03-03-2016 at 09:40 PM.
Reply With Quote