View Single Post
  #2   Spotlight this post!  
Unread 27-01-2015, 15:13
nwall nwall is offline
It's a hardware problem
AKA: Nicholas
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Sep 2012
Rookie Year: 2012
Location: Austin, TX
Posts: 13
nwall is an unknown quantity at this point
Re: Rookie Programmers-Mecanum Help Wanted

Here is an example of how you can do this, but you will probably need to play with the values and array indices (I don't have the joystick or your robot sitting here).

The first part is just opening the refnum to the joystick, and assign the X/Y axis to the Holonomic Drive block as usual, but in order to get the Rotation, we simply put it through two Select blocks to get which direction it should turn. Keep in mind that button 4 overrides button 3, but you probably aren't pushing both buttons at the same time with the same finger.
Attached Thumbnails
Click image for larger version

Name:	rotationWithButtons.jpg
Views:	65
Size:	29.3 KB
ID:	18014  
Reply With Quote