View Single Post
  #1   Spotlight this post!  
Unread 02-13-2016, 10:31 PM
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 90
duane is an unknown quantity at this point
Send a message via AIM to duane
CAN Talon SetPulseWidthPosition()

Code:
SetPulseWidthPosition()
doesn't seem to do anything.

We are using CAN Talon's with the CTRE Magnetic Encoder. We are trying to establish the zero position of the encoder so that it is consistent between two encoder of these encoders.

We are trying

Code:
_talon->SetPulseWidthPosition(_talon->GetPulseWidthPosition() - kZeroOffset);
The idea is to give a consistent zero location for the absolute position.

We could be approaching this wrong as the manual suggests using the absolute position to establish a zero for the relative position. We haven't been able to work out that series of calls.

Even just calling
Code:
_talon->SetPulseWidthPosition(0);
Had no affect.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote