View Single Post
  #5   Spotlight this post!  
Unread 17-01-2017, 15:25
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,126
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: Swerve Programming joystick issues

Quote:
Originally Posted by david.e.boles View Post
(W)heel pos: 350
(J)oystick pos: 10

(W-J)%360 = 340 -> bigger than 180, don't turn negative
(J-W)%360 = 20 -> smaller than or = to 180, turn positive!
Could you please explain why you prefer that method rather than using IEEEremainder.



Reply With Quote