|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: new motor
I'm imagining that this doesn't compile, since there isn't a RobotDrive constructor that takes only one int parameter. Also, in operatorControl() you're setting the drive motors based on input from two joysticks, and then setting them again based on input from a third joystick. This isn't going to produce a desirable result.
If you want to control a single motor with a joystick, use the appropriate SpeedController class -- Jaguar or Victor. RobotDrive is intended for use with drive trains that have two or four motor configurations. Code:
Jaguar spot = new Jaguar(3);
...
public void operatorControl() {
setUpRobot();
while (true && isOperatorControl() && isEnabled()) // loop until change
{
drive.tankDrive(leftStick, rightStick);
spot.set(kicker.getY());
Timer.delay(0.005);
fenrir.feed();
}
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New FP motor at event | Pat Major | Motors | 1 | 14-02-2005 16:57 |
| New Drill Motor Mounts | MattB703 | Motors | 1 | 08-01-2003 21:46 |
| New Drill Motor Mounts | MattB703 | Technical Discussion | 0 | 06-01-2003 09:31 |
| New Fisher Price Motor - IMPORTANT | Paul Copioli | Motors | 6 | 08-02-2002 13:35 |
| What's with the New Motor Specs for the Atwood Mobile (Chiaphua) Motor. | Robb Gerber | Motors | 2 | 23-01-2002 08:58 |