View Single Post
  #12   Spotlight this post!  
Unread 29-09-2014, 15:29
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
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: Mecanum Wheels & Encoders -- Java code


I highly recommend you forego the master/slave all-wheel-speeds-the-same approach you are describing and do the following instead:

1) fix the mechanical issues first. see my earlier post.

2) forget the PID and encoder for now. instead, program the wheel speeds properly using either the WPILib RobotDrive class or home-brew code described here. This will give the driver full control of steering and strafing.

3) Once you've got that working, there's a good chance you won't need PID at all.


Reply With Quote