![]() |
Is RobotDrive required ?
Hi everyone,
I would like to know if the RobotDrive class is required. Basically, we have a mechanum drive system, and we control the motors with the Set member of the Talon class. It's working like a charm so far. I would like to know if I'm not making any big mistakes here. Thanks |
There is no requirement to use robot drive. It's there to make your life easier.
|
Re: Is RobotDrive required ?
Ok, thanks !
(and I must add it wasn't making my life easier) |
Re: Is RobotDrive required ?
Quote:
|
Re: Is RobotDrive required ?
Quote:
|
Re: Is RobotDrive required ?
Quote:
Both joysticks up : move forward Both joysticks down : move backward One up, one down : rotation Both left/right : sideway movement We used it in other competitions (Vex) and we found it to be way more intuitive Here's the code itself (in a stripped down version): frontLeft->Set(-stick.GetRawAxis(2)+stick.GetRawAxis(1)); backLeft->Set(-stick.GetRawAxis(2)-stick.GetRawAxis(1)); frontRight->Set(stick.GetRawAxis(4)+stick.GetRawAxis(3)); backRight->Set(stick.GetRawAxis(4)-stick.GetRawAxis(3)); |
Re: Is RobotDrive required ?
Quote:
First do this: Code:
Y = (Yleft + Yright)/2Code:
/** |
Re: Is RobotDrive required ?
Quote:
|
Re: Is RobotDrive required ?
Quote:
Forward - drive forward Left - strafe left Right - strafe right Backwards - drive backwards Twist - rotate Do you not have a joystick that has a twist motion? |
Re: Is RobotDrive required ?
@Ether
Code:
Y = (Yleft + Yright)/2Many times, I found myself having one joystick up and one left. It allows me to make the robot do some movements that are otherwise difficult. Also, I have been able to control the robot with a dead motor. I was still able to move it around easily, while I couldn't with the original WPILib MechanumDrive. Last thing I like about it : Left Joystick controls left wheels, right joystick controls right wheels. No confusion about that. Also, what do you mean by "3DoF" ? @notmattlythgoe We do have a 3-axis joystick, only we find it to be unaccurate @Both of you (and everyone else) I may be wrong, please correct me if it's the case |
| All times are GMT -5. The time now is 12:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi