View Single Post
  #12   Spotlight this post!  
Unread 02-03-2016, 15:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,040
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Bang-bang using Talon-SRX and PID for a Shooter

Quote:
Originally Posted by billbo911 View Post
We are using separate thread to control the wheel. It measures the period of a single flag on the shooter wheel.
Please provide more detail how you are obtaining the period.

For example:
a) sensor is configured as a counter object, and the 40MHz FPGA is giving you an exact period via getPeriod() in WPILib,

or

b) you are counting wheel revs, and dividing that into your nominal thread period,

or,

c) you are counting wheel revs, and dividing that into your measured thread period,

or

d) something else?
I ask because bang-bang does not like phase lag and/or jitter on your speed signal.