|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Inverting a joystick axis in arcade mode
Is there any easy way to invert one joystick axis in arcade mode?
We just got a USB-Chicklet and a Logitech Dual Action Gamepad. Our code uses arcade mode and works perfectly with the joystick from the kit of parts. Unfortunately, the chicklet inverts the x-axis of the gamepad's joystick. We do not want to change the direction the robot drives. The only way I know how to work around this problem is to rewrite the arcade function (using the default MPLab 1-joystick drive code as a model). Our rookie programmer won't have time to do that. |
|
#2
|
||||
|
||||
|
Re: Inverting a joystick axis in arcade mode
Quote:
I've considered something similar to make sure nothing goes weird if our chicklet is malfunctioning. Not that unless you're in your fix-it window, you shouldn't be coding right now, however. |
|
#3
|
||||
|
||||
|
Re: Inverting a joystick axis in arcade mode
You can also invert all four motors and that should effectivly invert the axis.
|
|
#4
|
|||
|
|||
|
Re: Inverting a joystick axis in arcade mode
You can do it in hardware by swapping the pwms on the robot. You may then need to reverse the Red & Black leads from the motor to the Victors.
Or in software just swap the Arcade PWMs for rightmotor/leftmotor. You may also need to check the 'Invert Direction' boxes. |
|
#5
|
||||
|
||||
|
Re: Inverting a joystick axis in arcade mode
Our programmer switched the left and right motors in the Arcade block and solved the problem. Unfortunately, we have to reprogram if we want to use the KOP joystick. Thanks for all your help.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inverting x-axis | jkjohnson | Control System | 8 | 22-02-2007 02:24 |
| Arcade Mode (12) does NOT work | jakk | Programming | 2 | 10-07-2006 19:27 |
| pwm outputs vs. joystick y-axis | stephenthe1 | Programming | 4 | 01-12-2004 17:29 |
| 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 |