|
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.
|