View Single Post
  #3   Spotlight this post!  
Unread 23-02-2016, 15:46
TheMechanic40 TheMechanic40 is offline
Registered User
FRC #3506 (YETI Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2013
Location: North Carolina
Posts: 31
TheMechanic40 is an unknown quantity at this point
Re: Difference between setPosition() and setEncPosition() for can talon encoders

This is the source of my confusion, section 13.3 of the talon srx software manual says that setPosition() sets the sensor position so setPosition(0) would zero the encoder. Does setPosition() only set the encoder value when the talon isn't in PID mode and it sets the setpoint when it is in PID mode, while setEncPosition() sets the sensor position no matter the talon's control mode?
Reply With Quote