|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: How the heck do you use an XBOX360 controller with the chicklet??
Quote:
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. Last edited by Mike Copioli : 24-01-2007 at 21:30. |
|
#2
|
||||
|
||||
|
Re: How the heck do you use an XBOX360 controller with the chicklet??
Thanks! i think ill try it out!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How did you use the FP motors? | Validius | Motors | 25 | 02-03-2005 01:30 |
| How to use timer in the controller | Thedarkmaster | Programming | 5 | 09-01-2005 12:48 |
| how do you use the listen to site? | Alex Cormier | Chit-Chat | 5 | 15-02-2004 21:33 |
| Can you use PWMs (Red or Blue) with the edubot controller? | Dr.Bot | Robotics Education and Curriculum | 3 | 04-12-2003 23:51 |
| Can you use the spikes with the globe motors? | Caleb Fulton | Electrical | 1 | 15-02-2003 20:13 |