Go to Post Engineering is a fabulous background for many careers. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #8   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
 


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 07:58 AM.

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