View Single Post
  #41   Spotlight this post!  
Unread 13-03-2015, 09:48
Caleb Sykes's Avatar
Caleb Sykes Caleb Sykes is offline
Registered User
FRC #4536 (MinuteBots)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: St. Paul, Minnesota
Posts: 1,049
Caleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond reputeCaleb Sykes has a reputation beyond repute
Re: Programmers on the Drive Team

Quote:
Originally Posted by AWoL View Post
Eh, close enough. The effect is the same. My code actually has more to do with scaling the speed by the amount of joystick input on the x axis.
Let me try again then:
For the same hypothetical mecanum drive, no feedback is used when setting wheel velocities. Instead, the joystick outputs are scaled as follows:
Output x = joystick.X
Output y = (joystick.y)/2

This causes the forward top speed to be slowed down so that the strafing speed is never exceeded in any direction.