|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
As someone who has had the privilege of driving robots in competitions, I would echo most of Jared's points. Especially the part about separating the primary drive functions to different hands. In 2008 we implemented an RC car controller (seen here) and every team member with driving experience quickly picked it up and preferred it to the traditional 'tank drive' style of control.
Having never played with omnidirectional FIRST robots, I can't say which method works best. I did have the fun problem of figuring out the omnidirectional control set up for our underwater robot however, which had a lot of stuff to cover: - ROV has 5 degrees of freedom of motion (pitch, yaw, and translation in x y and z) - Manipulator has 2 degrees of freedom (grasp, rotate) - Camera tilt - Various other functions (lighting, torpedo launching, camera centering) To have the ROV actually be driven well, we wanted all of these operations to be controlled by one person. The solution we came up with was using a PS2 controller and mapping the different movements in a sensible way. Left joystick covered translational movements on the horizontal plane while right joystick covered turning left/right and moving up/down (surprisingly similar to first person shooter game controls... they must be doing something right). Claw open/close and ROV pitch were controlled by the PS2 triggers, and all other 'less critical' operations were put on the buttons. A neat feature of a PS2 controller: all buttons and triggers are pressure sensitive and can basically be used as analog controls. As usual, putting a lot of thought into the control system only gets you so far. The driver needs gobs of practice for it to pay off! As a last little note, I would also add that working with smaller controllers (as in video game controller, RC controller, etc. instead of large PC joysticks) gives more fine control over movements. Human fingers are good at precisely manipulating objects; I could never grasp why so many teams use large joysticks that require arm and wrist movements. |
|
#2
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
Quote:
|
|
#3
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
How about this:
Use a sprung resistor-based steering wheel for turn. Use a foot pedal for forward speed. Use a sprung lever for strafe. Use a switch swap the front and back of the robot. To make these, you can buy a cheap 3-axis USB joystick, take it apart, and wire your own potentiometers to it. |
|
#4
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
Descent 2 is a fps-style game from a long time ago that was waaay ahead of its time in graphics and gameplay. It still has a cult-like following, though none of us ever expect there to be a Descent 4 because of ... well who knows why that company sits on its hands and the liscensing.
Like an underwater ROV, the ship in Descent 2 is in ultra-low gravity and has 6 degrees of freedom (roll, pitch, yaw, x, y, z). The default controls for that game were a single joystick with a 4-direction hat and 4 keys on the keyboard, however I'm sure that was only because of the rudimentary technology of the time (like the OS, lack of USB, etc). The ballistics in the game also meant you had to aim ahead of the target's movement as well. In playing the game at my peak I could control roll, pitch, and yaw while varying strafe movements in order to circle-strafe and hit a target as it moved in a somewhat predictable line. It relates to FRC since a good pilot of Descent 2 would understand what's possible on-field with a true-holonomic drive train. It's the same without the roll, pitch, and z. Flying in Descent 2 would allow a driver to come up with the best way he/she is comfortable driving rather than having to conform to what the programmers and everyone else thinks is best. These days you can use multiple input devices instead of just the joystick/keyboard. However, the game's actual value is probably only realized if a potential driver plays the game well ahead of the build season since you really don't want to have to take excessive time trying to decide during the season. (Descent 3 missed the mark -- it's not as responsive control-wise, though some of the environments were nice. D3 also kept crashing on me at the time. If they never make a 4th I will resolve myself to making a 6-DoF quadrotor or ROV when I'm done with grad school.) |
|
#5
|
|||
|
|||
|
Re: User Interface - Drivetrain Controls
This past year, our programmers went with three different systems. We realized that there are three types of people: Gamers, drivers, and others. Gamers are used to tank, robot oriented, manual drive systems. Drivers are used to turning, steering and accelerating. Others are used to nothing, therefore they want something simple, yet complex, and easy to use. We accomplished this with a LOT of fine tuned programming (I don't want to hijack this thread with a lot of programming) . Our mechanum system was programmed in such a way that pretty much anyone can drive it.
Another nice way to provide feedback in a simple way. For example, instead of a textbox saying "Drive motor failure on left front wheel" How about putting a top view of your robot, and making the corners of the robot blink depending on the status? Pictures are more user friendly, and make the driving experience a lot nicer (I can say this as a programmer and 2 year drive team member) |
|
#6
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
One thing that makes driving a LOT easier (especially at slow speeds) is using speed-control with PID as opposed to open-loop control.
This does lead to two issues:
Last edited by kamocat : 20-08-2010 at 17:12. |
|
#7
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
Quote:
~ |
|
#8
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
1756 used a mecanum drive train controlled by an XBox controller. The left joystick made the robot move straight forward, backward, left or right. We programmed the robot not to move at any angles because the PID couldn't keep the robot facing the same direction well enough. The right joystick controlled the robot's rotation.
While programming the robot we assigned one of the buttons on the right side of the controller to switch drive modes, but we disabled that for driver training and competition because it was to easy to change accidentally. The controls seemed pretty good, our robot just got stuck too easily. We liked the XBox controller better than full-sized joysticks and are considering using a corded PS3 controller next year so we can have gyro/accelerometer input options. |
|
#9
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
Quote:
~ |
|
#10
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
Quote:
Regardless deadband is easy to fix with simple scaling functions, you don't even need PID. |
|
#11
|
||||
|
||||
|
Re: User Interface - Drivetrain Controls
Quote:
In the LabVIEW software, the deadband is implemented in the "Motor SetOut" function, not the "Joystick get" function. In addition, the motor controllers themselves actually DO have a deadband for PWM-based control and for CAN voltage mode. PID will render the deadband inneffective because it treats it as error. If the joystick is just barely off of centered, then well-tuned PID will make the motor go at 1/128th of its full speed, though you might intend it to be stopped. Yes, it is easy to implement your own deadband, but it's important to know that until you do, the robot won't completely stop when you let go of the joystick(s). Removing the deadband is not the purpose of PID. PID is used to ensure the motors run at the rate you tell them, regardless of battery voltage, friction, load, or variations in the motors themselves. (The speed range of the motors is limited by battery voltage, but within that limit they will still perform at your setpoint) Last edited by kamocat : 22-08-2010 at 12:01. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Team 241: User Interface | Dantvman27 | Extra Discussion | 1 | 21-02-2007 13:12 |
| is the 2004 user interface compatible with the 05 RC? | wildabyss | Control System | 5 | 22-02-2005 05:28 |
| Using non joystick controls with Operator Interface (Hacking Various Controllers) | Astronouth7303 | Control System | 58 | 02-02-2005 15:56 |
| [FVG]: User Interface | Mike Ciance | FIRST-related Organizations | 15 | 25-07-2004 14:30 |
| GUI (graphical user interface) | nzj1 | Programming | 1 | 17-01-2003 22:47 |