|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Inverting x-axis
We are using the Logitech Dual-Action gamepad. Our programmer calibrated it in mode 2 for one joystick drive.
We want to be able to use either the gamepad or a joystick without reprogramming. Currently the USB-Chicklet inverts the output from the x-axis of the left stick on the gamepad. We want the gamepad to emulate the joystick. Changing the code on the robot controller or switching the wires attached to the speed controllers will not fix this. Changing the code on the USB-Chicklet could fix it. Is there a jumper setting on the chicklet that will do this for us? |
|
#2
|
|||
|
|||
|
Re: Inverting x-axis
I have no experience with the chicklet, sorry.
However: Check out http://www.ifirobotics.com/docs/usbc...ual-rev1-2.pdf, calibration might be able to fix this. Otherwise, you will have to resort to the software solution. You could put a switch on the OI that will let you select joystick or gamepad mode. |
|
#3
|
||||
|
||||
|
Re: Inverting x-axis
Calibration does not seem to fix the problem. Our programmer followed the user's guide and tried both mode 2 & 3 several times.
I do not understand why the Chicklet was not programmed so it's joysticks output matches standard/KOP joysticks. Is this just a problem with the Logitech gamepad? Is there a way to change the code on our Chicklet? |
|
#4
|
|||
|
|||
|
Re: Inverting x-axis
I bet CTRE tried to design it so it matches analog joysticks. However, not all controllers have the same design (inverted x or y axis).
I would contact CTRE (http://crosstheroadelectronics.com/contact.html) and ask them whether there is anything you can do. I doubt there is, however. |
|
#5
|
||||
|
||||
|
Re: Inverting x-axis
You can always just have something built into the code that you can quickly change. For example, you can have something like:
Code:
#ifdef USB
pwm1 = p1_Y;
#endif
#ifdef JOYSTICK
pwm1 = 255 - p1_Y;
#endif
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inverting Joysticks? | The yellowdart | Programming | 5 | 20-02-2006 20:05 |
| Dual-Axis Accelerometer | naor52 | Programming | 18 | 27-01-2006 22:06 |
| Reversing the joystick axis | JBotAlan | Programming | 3 | 09-02-2005 19:47 |
| Inverting Y axis on joystick | FormatteD_C | Programming | 7 | 24-02-2004 16:56 |
| switching joystick axis????? | team222badbrad | Technical Discussion | 9 | 16-01-2002 23:07 |