![]() |
Re: Desensitizing Joysticks
Wouldn't a hyperbola work? not the regular kind; try Y=sqrt(R^2+X^2)-R. basically, close to zero, it's a curve, but farther away, it's close to linear. Excel that and try it. But it won't reach maximum value ever. A coefficient would be necesary. R is the value at zero.
|
Re: Desensitizing Joysticks
Take out the set screw in the joystick. It should spin like the wheel on the robobt.
I didn't break it! |
Re: Desensitizing Joysticks
Quote:
|
Re: Desensitizing Joysticks
Quote:
bit of functionality - a rate limiting function. The exponential curve via table lookup solves one problem but not the problem of quick changes in torque. If you use both methods simultaneously, it can help to solve range/resolution issues associated with Joystick input to pwm0x output, and torque/speed transitions from positive/negative to negative/positive. |
Re: Desensitizing Joysticks
Quote:
Looking back on this post, the reason we did this was because our joysticks didn't stay exactly centered and you would have to re-adjust the trim 85 billion times in a match if we used those joysticks. |
Re: Desensitizing Joysticks
im not a fluent programmer. im learning java in class. but our programmer wrote in a zeroing button on the control board after the joysicks being a pain and never going back to zero. big mistake, the joysticks hold a value, i forget what it is, and after a while the values become off due to the mechanics of the stick. The zero button made the robot very hard to drive,if you zero it while its not PERFECT, the handling falls apart.
just sharing an experience |
Re: Desensitizing Joysticks
Quote:
|
Re: Desensitizing Joysticks
Quote:
P.S. If you would like the code PM me. The program was a little rushed so it was a tad buggy, nothing too major, but I'm sure with a little work they can be worked out. |
Re: Desensitizing Joysticks
Quote:
Here was Team 188's solution to sensitive joysticks for 2004 courtesy Carol, Honson, Tristan and myself: Code:
temp_p1_long = (signed long)p1_y - 128;In a nutshell, it's a cubic transfer function that makes the robot accelerate exponentially when you push the joystick. There's a nice wide area to operate slowly, yet full speed is still there when you push it all the way. We spent a few days testing different transfer functions, and this one worked out the best. It's pretty CPU intensive (multiplying long integers), and a look-up table would be faster, but try it for a quick and dirty way to get things working smoothly. You can generate a look-up based on the code later on. Cheers! -SlimBoJones... |
Re: Desensitizing Joysticks
Absolutely...our team also realized the joysticks provided by FIRST proportionalize poor handling...Don't know if you'd had a look at the white papers on this website yet but team 1382's written one about the advantages of converting the linear curve of the joystick into an exponential one (and includes source code). I guarantee it'll give you some ideas...
Link: http://www.chiefdelphi.com/forums/pa...le&paperid=280 |
| All times are GMT -5. The time now is 05:21. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi