![]() |
Rookie Programmers-Mecanum Help Wanted
We are first time programmers, and we have decided to go with a mecanum drive this year. We have been running the default roboRIO Mecanum With Arm code, and we are driving great. However, our driver hates using the z axis (the little dial) for rotating. How would we change it to buttons 4 and 5 on a Logitech Attack 3? It's the default code, but we can post a picture if you guys think it will help. Thanks!
|
Re: Rookie Programmers-Mecanum Help Wanted
1 Attachment(s)
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. |
Re: Rookie Programmers-Mecanum Help Wanted
what VI do we put this into?
|
Re: Rookie Programmers-Mecanum Help Wanted
You can put this inside of Teleop, sorry.
|
Re: Rookie Programmers-Mecanum Help Wanted
Quote:
You should read this thread about driver interface. Your driver may be much happier with two 2-axis joysticks instead of just one. |
Re: Rookie Programmers-Mecanum Help Wanted
Does anyone know how to do this in Java?
|
Re: Rookie Programmers-Mecanum Help Wanted
Quote:
|
Re: Rookie Programmers-Mecanum Help Wanted
Quote:
|
Re: Rookie Programmers-Mecanum Help Wanted
Quote:
Code:
/** |
| All times are GMT -5. The time now is 08:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi