Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=177)
-   -   How the heck do you use an XBOX360 controller with the chicklet?? (http://www.chiefdelphi.com/forums/showthread.php?t=51417)

Denman625 23-01-2007 17:39

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
we had the same idea about a wii controller... that would be so fun :-)

Choi9111 23-01-2007 18:44

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by AdamHeard (Post 556347)
Well... your problem might be that you are basing your statements on speculation; Mike is basing his on something a little more concrete, like the facts.

I ordered chicklets on day one because my team was planning on hard wiring the xbox controller anyway, and this allowed us to use unmodified controllers which saves a lot of time, and also allows the process of finding a spare at a regional much easier.

All the kids on our team unanimously agreed that an xbox controller is more familiar to them than joysticks; The freedom of movement Mike mentioned would also be very beneficial. I figure if people can be uber snipers in Halo 2 and Call of Duty with it, why can't we drive a robot with it.

Also, if you have nothing positive to say about something Mike put so much hard work into (thank you mike, you allowed our electronics to spend time pursuing higher goals, rather than hours of repetitive yet easy soldering) then I ask you to simply stop posting in this thread.

Another thing that bothered me a little bit. They don't use joysticks to control autonomous planes; They wouldn't be autonomous then.

So is there even a way to use the xbox360 controller to control our robot? cuz we in our class have been talking about it for a while...

Mike Copioli 23-01-2007 23:29

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Choi9111 (Post 563560)
So is there even a way to use the xbox360 controller to control our robot? cuz we in our class have been talking about it for a while...



Yes, The adaptor is called the USB Chicklet. It is available from IFI.

Choi9111 24-01-2007 11:36

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Mike Copioli (Post 563896)
Yes, The adaptor is called the USB Chicklet. It is available from IFI.

ya duh i know that...i was talking more about programming wise... thanks for making me seem dumb.

Mike Copioli 24-01-2007 14:35

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Choi9111 (Post 564153)
ya duh i know that...i was talking more about programming wise... thanks for making me seem dumb.

Then the answer is still yes. If the inputs are to sensitive, then you should scale them. For example, if you desire more control over the lower 1/3 of the throttle, just write a function that scales the input so the lower 1/3 of the output to the PWM is spread over a larger fraction of the joystick movement.

lets say you want more control over the output range 127-168. Scale the input by dividing the actual joystick value by a constant greater than 1 or multiply the joy value by a constant less than 1. You will need a conditional to evaluate if the joystick is <=168 in this example. If the condition is true you would apply the scaling to the input value.

#define SCALING_FACTOR .8

If (joy <= 168 && > 0)
{
unsinged char pwm;
pwm = scale(joy);
}

unsigned char scale(unsigned char joy_val)
{
new_pwm = joy_val * SCALING_FACTOR;
return new_pwm;
}

Now this does not account for the reverse values but you get the idea. This is just an example and probably wont work.

Choi9111 24-01-2007 15:45

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Thanks! i think ill try it out!

Mike Mahar 31-01-2007 09:07

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Mike Copioli (Post 563128)
That device is not supported. Please see the list of supported devices in the user manual.

.

I don't know much about game controllers. Does a 3rd party Xbox360 look different from a Microsoft Xbox360 controller? We have a Gamestop Xbox360 controller and the chicklet doesn't seem to recognize it.

Mike Copioli 31-01-2007 10:43

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Mike Mahar (Post 568737)
I don't know much about game controllers. Does a 3rd party Xbox360 look different from a Microsoft Xbox360 controller? We have a Gamestop Xbox360 controller and the chicklet doesn't seem to recognize it.

The Chicklet will only recognize a Microsoft brand X-box 360 controller. If you reference the user manual, under supported devices, the device manufacturer and name must match the table of supported devices exactly. After market and older versions of devices may not be supported. Basically if you buy an OTS microsoft X-box 360 controller you should not have any issues.

Mike Mahar 31-01-2007 11:50

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Mike Copioli (Post 568797)
The Chicklet will only recognize a Microsoft brand X-box 360 controller. If you reference the user manual, under supported devices, the device manufacturer and name must match the table of supported devices exactly. After market and older versions of devices may not be supported. Basically if you buy an OTS microsoft X-box 360 controller you should not have any issues.

Thanks, Mike, for clarifying that. It might be a good idea to put a note in the User Manual that says the manufacturer has to match exactly. Also, you state the manufacturer for all of the other controllers but you just state Xbox and Xbox360 for the Microsoft controllers.

Since I didn't know anything about game controllers before this, I assumed that Xbox360 meant "or compatible". Oh, well, live and learn. I guess I'll go get the Ligiteck game pad and use that.

John Gutmann 31-01-2007 12:51

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Get a halo god to drive your robot. They are pros with the controllers....Have you every actually played halo on level 10 sensitivity on tiny tap moves the sights across the screen.

But then again scaling is probally easier then Halo bootcamp.

Mike Copioli 31-01-2007 15:33

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
[
Quote:

Originally Posted by Mike Mahar (Post 568835)
Also, you state the manufacturer for all of the other controllers but you just state Xbox and Xbox360 for the Microsoft controllers.


Uhhhhh? hu? I want you to think about that last statement. The key word is MICROSOFT. You do realize that Microsoft is a manufacturer? I dont mean to sound sarcastic. But I find it funny that you mention the manufacturer in a sentence questioning why we don't state the manufacturer.

Anyway I got a good laugh. You are right we do need to emphasize that it has to be the exact manufacturer. We will update this.

Mike Mahar 31-01-2007 16:33

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Mike Copioli (Post 568955)
[

Quote:
Originally Posted by Mike Mahar View Post
Also, you state the manufacturer for all of the other controllers but you just state Xbox and Xbox360 for the Microsoft controllers.

Uhhhhh? hu? I want you to think about that last statement. The key word is MICROSOFT. You do realize that Microsoft is a manufacturer? I dont mean to sound sarcastic. But I find it funny that you mention the manufacturer in a sentence questioning why we don't state the manufacturer.

Anyway I got a good laugh. You are right we do need to emphasize that it has to be the exact manufacturer. We will update this.
__________________

Well, by the time I wrote that sentence, I did know that it had to be the exact manufacturer. Perhaps I should have said: " Also, you state the manufacturer for all of the other controllers but you just state Xbox and Xbox360 for those controllers and assume that everyone would know that they must come from Microsoft." That was the sense of what I was trying to say.

PC controllers seem to come with their own drivers so it is logical to assume that each manufacturer is going to be different in some way. The makers of 3rd party Xbox360 controllers would be motivated to make their controllers behave exactly like the Microsoft versions. Or, at least I assumed that they would. But, being USB devices they would have different vender IDs and product IDs. So, in retrospect, it is not surprising that your device would rely on this, or other, informaiton to configure itself and not support 3rd party controllers.

Mike Copioli 31-01-2007 19:58

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
Quote:

Originally Posted by Mike Mahar (Post 568990)
Well, by the time I wrote that sentence, I did know that it had to be the exact manufacturer. Perhaps I should have said: " Also, you state the manufacturer for all of the other controllers but you just state Xbox and Xbox360 for those controllers and assume that everyone would know that they must come from Microsoft." That was the sense of what I was trying to say.

PC controllers seem to come with their own drivers so it is logical to assume that each manufacturer is going to be different in some way. The makers of 3rd party Xbox360 controllers would be motivated to make their controllers behave exactly like the Microsoft versions. Or, at least I assumed that they would. But, being USB devices they would have different vender IDs and product IDs. So, in retrospect, it is not surprising that your device would rely on this, or other, informaiton to configure itself and not support 3rd party controllers.

I apologize if I seemed to brash. Actually I checked the user manual and you are correct it does have the manufacturer listed for everything except Microsoft. It's the IFI web sight that states the manufacturer for the X-box and 360. And yes you are also correct in your statement about PIDs. Each company has there own VID and PID. We use the PID for recognition purposes. The Chicklet will try to connect to ANY HID device (red orange red orange) but it will not load the drivers if it does not see the PID. If there is still a need for the Chicklet next year we will be releasing a version that will connect to almost any HID device and the chicklet will use the device descripter to create drivers that are unique to each device.

Trav-O 17-02-2008 12:43

Re: How the heck do you use an XBOX360 controller with the chicklet??
 
we definitley are storing our chicklet in an altoids box lined with that pink foam stuff...

this cant damage it, will it?


ATTACK 3 = PWNAGE!!!!:p


All times are GMT -5. The time now is 17:32.

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