Go to Post ...when you hear a kid say "oink oink" and you say in your head "BOOM!" - delsaner [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2007, 14:20
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2007, 14:39
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2007, 20:41
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2007, 21:46
tdlrali tdlrali is offline
Registered User
FRC #0469 (Las Guerrillas)
Team Role: Programmer
 
Join Date: Sep 2006
Rookie Year: 2006
Location: MI
Posts: 377
tdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud oftdlrali has much to be proud of
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 22-02-2007, 02:24
Stvn's Avatar
Stvn Stvn is offline
FIRST Competition Competer
AKA: Steven Rhodes
FRC #0100 (WHS/CHS - WildHats)
Team Role: Leadership
 
Join Date: Feb 2007
Rookie Year: 2004
Location: Woodside, CA
Posts: 90
Stvn is an unknown quantity at this point
Send a message via AIM to Stvn
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
and define as needed.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 05:38.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi