Go to Post ...when the rack starts swaying you start praying! - Wayne C. [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
  #7   Spotlight this post!  
Unread 03-03-2016, 12:59
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: Talon SRX in Position Mode Won't keep zero

Quote:
Originally Posted by mikets View Post
What do you mean by it resetting itself to zero? Is there a fixed location in the revolution at which when passing through will clear the position to zero? If so since you are using the SRX Mag encoder and I have read this sensor can be used in absolute or relative mode. In absolute mode, it will reset the reading back to zero when wrapped around. Could it be what you have observed is a behavior of absolute mode?
https://www.ctr-electronics.com/Talo...e%20Manual.pdf
I'm using the Talon in Position mode with the feedback device as pulse width, in this mode you can read positions over multiple rotations but the reference (zero) must be set, so if you look at my code the first thing we do is run the two motors down until it reaches the limit switch then sets the reference to zero using setPosition(0). during teleop i noticed after switching to a position a few times it suddenly stops going to the reference point when commanded to. I printed out the position of each talon and preformed a self test and it seems it just randomly at some point during teleop it will just change its zero (reference) to the last position it was at even know there is no setPosition being called.

Hope this clarifies anything,
__________________
2015-2016 CSA
Software Engineering Student @ Johnson & Wales University
Team 228, Gus Robotics Inc.
Facebook
FLL Mentor for 1107, Edison Eagles!
2015- CT State Champions
2012- WPI Finalist(Thanks 1884 and 549), Spirt, Best Website
2011- WPI Chairman's award winners!
2010- WPI Champions! (thanks 230 & 20), WPI Engineering Inspiration, CT Best Website, CT VEX Champions (VRC228, VRC228b) (21-1-0)
2009- QCC VEX Champions (VRC228) (11-0-0), Innovate Award (VRC228)
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 10:17.

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