Thread: encoder uneven
View Single Post
  #10   Spotlight this post!  
Unread 21-02-2012, 14:54
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,042
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: encoder uneven

Quote:
Originally Posted by therealman1 View Post
the jag is expecting -1 to 1, and it is receiving that amount
there's no -/+1 clamp here, "speed" is being integrated without bound:

Code:
speed+=PIDshooter.get();
leftJag.set(speed);

Reply With Quote