View Single Post
  #4   Spotlight this post!  
Unread 15-12-2015, 13:28
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Talon SRX Swerve Control

The POS value did as expected and went past 1023. Your code appears to be throwing away the overflow and trying to limit everything to a single rotation.

Don't do that. Just add to or subtract from the current setpoint, without worrying about going "too far" in any direction.

Last edited by Alan Anderson : 15-12-2015 at 13:33.
Reply With Quote