View Single Post
  #8   Spotlight this post!  
Unread 18-03-2015, 21:20
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Talon SRX Position PID Control Issue

Are you using getEncPosition() or getPosition()? The former only updates every 100ms, which explains what you saw. The later every 20ms.

The signal is updated in the Talon pretty quick. Say 100us after receiving the can frame to be safe. And the setPosition(0) immedietely sends a can frame to the talon.

But the getters only get periodic updates over CAN Bus. If that's a problem you can increase the frame rate of the corresponding message.