Go to Post amazing stuff. - Specialagentjim [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-02-2016, 22:31
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
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:14.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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