Thread: Steering wheel
View Single Post
  #16   Spotlight this post!  
Unread 21-12-2006, 11:26
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,567
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: Steering wheel

Quote:
Originally Posted by Hieb View Post
As far as manuverability, I think that joysticks give more options while turning (tight turn radius/0 turn radius and so on). On the other hand, if the driver never makes use of all of the options available and can effectively drive using the steering wheel, then by all means go for it.
The robot has the same options for turning no matter what you go with--all you're changing is how you tell the robot to do it.

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.
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

94 events (more than will fit in a ChiefDelphi signature), 14 seasons, over 61,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.