View Single Post
  #15   Spotlight this post!  
Unread 02-03-2016, 16:50
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,350
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Bang-bang using Talon-SRX and PID for a Shooter

Quote:
Originally Posted by Ether View Post
I'd like to drill into this a bit deeper if you'd be willing to bear with me. What is the source for the "1ms resolution" statement?


Fair question.
This is my interpretation of:

Quote:
getPeriod
public double getPeriod()
Get the Period of the most recent count. Returns the time interval of the most recent count. This can be used for velocity calculations to determine shaft speed.
Specified by:
getPeriod in interface CounterBase
Returns:
The period of the last two pulses in units of seconds.
That and the fact that the value getPeriod() produces only has 3 places to the right of the decimal point. ie. .020.

I have no problem being wrong in my interpretation, wouldn't be the first time. But I can tell you this, our code works, and we use 3 decimal place values to control it.
Remember my disclaimer, Java is not a programming language I use.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist