|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Programming Mecanum
How do we program these wheels when they do not drive straight? In stupid terms cause I do not understand all the programming lingo.
|
|
#2
|
|||
|
|||
|
Re: Programming Mecanum
A good idea is to set up each motion (eg front or strafe) separately
then get the axis from your joystick this will get the magnitude you will have to figure out the math |
|
#3
|
||||
|
||||
|
Re: Programming Mecanum
Quote:
. |
|
#4
|
|||
|
|||
|
Re: Programming Mecanum
Ah, yes it works pretty well, except there's you gotta use
Code:
drive.holonomicDrive(leftStick.getMagnitude(), leftStick.getDirectionDegrees(), rightStick.getX()); One thing though: There's these weird delays, which I'm attempting to fix. |
|
#5
|
||||
|
||||
|
Re: Programming Mecanum
Okay at this moment our programmers are working on trying to figure out the holonomic drive method. The motors are connected to the correct PWMs and we've been using the exact code given here in the forum but through our misfortune we have came up with the notion that the holonomic drive class has errors. Depending on what we do to our code the wheels will run in opposite directions, forward, or rotate; but never reverse.
We think it has something to do with the order of the parameters. Our programming works better if we put rotation where magnitude goes and vice versa. Direction is still much of a mystery. As you can probably surmise from this entry our troupe of programmers are confused at this point. Right now our mentor is planning to copy the holonomic drive class in order to play with it to see if that yields any positive results. |
|
#6
|
|||
|
|||
|
Re: Programming Mecanum
Do you need to set the motors on one side inverted? When we first just tried we noticed the wheels on one side were reversed and we needed to add:
setInvertedMotor(RobotDrive.MotorType motor, boolean isInverted) |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mecanum Programming Help | Mars | Programming | 8 | 27-02-2008 15:41 |
| Bizarre Mecanum Programming Bug | manderson5192 | Programming | 10 | 08-02-2008 22:11 |
| Mecanum drivetrain programming problems | Mr. Freeman | Programming | 4 | 21-03-2007 17:11 |
| mecanum programming | mrmummert | Programming | 27 | 28-01-2007 13:45 |
| programming motors with programming kit | BorisTheBlade | FIRST Tech Challenge | 4 | 01-11-2005 19:03 |