![]() |
Re: Steering wheel
Quote:
Assume you have one joystick for throttle forwards and backwards, then one steering wheel to determine rate of rotation. Calculate the difference in PWM values needed given the position of the wheel, then add in the throttle values. Since this might throw the PWM values out of the valid range, add in some code to scale back the numbers until neither is over 254 (or below zero). IANAP (I Am Not A Programmer), but this would be how I'd attack the problem for a basic drive system without feedback or anything--those folks who actually know what they're talking about can elaborate there. |
Re: Steering wheel
Quote:
Further thought on the matter has led me to an implimentation that would allow both--I guess I just like joysticks because with a rookie team that only has 1 programmer (and she has no previous programming experience), I'll probably end up writting most of the code this year and joysticks are easy to implement. |
Re: Steering wheel
Quote:
I think if you used the one joystick drive setup in the default code and just used the steering wheel's output instead of 'p1_x' and used the throttle joystick's y value in the place of 'p1_y' it would work. |
Re: Steering wheel
Quote:
|
Re: Steering wheel
Quote:
|
Re: Steering wheel
Quote:
Now that I'm done beating my head against the desk for not recognizing the obvious I guess I can spend my time on more exciting things (like unpacking the huge order of supplies from McMaster-Carr and OnlineMetals--it really is Christmas time!). Quote:
So now, as long as the steering wheel and the throttle either self-center or have a sufficient deadband built in to the code, I'm beginning to think this could be a very effective control that I had simply dismissed previously. Who said you can't teach an old dog new tricks? :) |
Re: Steering wheel
For those who feel that the wheel will not give the same control options, I would have to say you are thinking too much inside the Joystick. The wheel can give you differences in control from only one or two pwm to 0 on one side and 254 on the other. Therefore any combination in between is possible with some rotation of the wheel.
|
Re: Steering wheel
Quote:
I am not a programmer. I understand the basics behind what we did, and the principle, but not much else. Our wheel acts exactly as a joystick would. If we turn the wheel a tiny bit, the robot turns a tiny bit. It's exactly the same as if you pushed one joystick forward a tiny bit and one backwards a tiny bit. It's scaled this way throughout the travel of the wheel. Our driver vastly prefers driving the robot this way, and after 3 years he's gotten pretty darn good at it. The wheel we use is the NASCAR Charger 2 by Thrustmaster. |
Re: Steering wheel
Quote:
|
Re: Steering wheel
Quote:
|
Re: Steering wheel
Quote:
Think of the range of motion you have with a joy stick. 90 degrees, at best. With a steering wheel, you have over 200 degrees of control (if not more, depending on your wheel). This was the argument supporting the wheel presented to us by a mentor from Team 60 (after 60/254's extremely successful 2004 season). It is MUCH easier for students to learn how to drive the wheel than with (a) stick(s). And that's not limited to students, if you have a sponser, little kid, future team member, etc .. driving, it's much easier for them to get a feel of it without crashing into something or someone. With that said, 1388 has used a wheel in 2005 and 2006. In fact, we already have our wheel for 2007. It's a Saitek R80, and we've got all 3 of ours new off ebay for less than $15 each. There are plenty of USB wheels out there, and if you have a rich team that wants a pretty wheel, then consider the new IFI USB dongle for the OI. There is some fine tuning on the driving code needed for the wheel. There is also a lot of room for improvement. We have added features into our wheel code that allows for much easier turning (pretty much turning in place). There is also a switch on our 2006 control box, that lets you jump from a wheel/joystick combination to a single stick for driving. |
Re: Steering wheel
Quote:
Having the steering wheel and one joystick for throttle made it much easier to turn, turn inside our footprint and drive straight (encoders of course helped out too). We had a first year driver and it only took him a couple minutes to get the hang of driving around with the steering wheel. After about a day on our practice robot he started looking like natural on the wheel. |
Re: Steering wheel
I don't know if anyone has realized it but using a steering wheel and throttle setup is the same thing as using one joystick......
steering wheel = left/right movement of joystick throttle = front/back movement of joystick -John |
Re: Steering wheel
maybe this is too obvious...but how about an r/c car controller? it has a steering wheel and throttle control, and driving an r/c car with one is very easy.
http://www2.towerhobbies.com/cgi-bin...I=LXPNM9**&P=7 for example |
Re: Steering wheel
Quote:
Quote:
|
| All times are GMT -5. The time now is 04:16. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi