Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   CAN Talon SetPulseWidthPosition() (http://www.chiefdelphi.com/forums/showthread.php?t=143826)

duane 02-13-2016 10:31 PM

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. :(


All times are GMT -5. The time now is 09:21 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi