|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
myRobot.TankDrive errors
when our team uses myRobot.TankDrive(0.3, 0.3), wheel 1 turns correctly, other wheel barely at all, and when we use myRobot.TankDrive(-0.3,-0.3), wheel 1 barely turns, while the other turns correctly. Is anyone else having this problem?
We are using Victors, and when we set them directly, it works fine, even if we declare them as jaguars. |
|
#2
|
||||
|
||||
|
Re: myRobot.TankDrive errors
Hi,
I can't answer your question but I think you should copy and paste a few more lines of your code to get a good answer from someone else. |
|
#3
|
|||||
|
|||||
|
Re: myRobot.TankDrive errors
Also, make sure the digital side car IS PLUGGED IN. We had this problem when I assumed the DSC only needed a power cable for servos. It needs it for victors aswell.
|
|
#4
|
||||
|
||||
|
Re: myRobot.TankDrive errors
that is all, if we have a simple program, myRobot = new RobotDrive(1,2) stick = new Joystick(1), and watchdog diabled, the Teleop looks like this
Code:
while(IsOperatorControl())
{
if (stick->GetTrigger())
myRobot->TankDrive(0.3,0.3);
else
myRobot->TankDrive(-0.3,-0.3);
}
|
|
#5
|
||||
|
||||
|
Re: myRobot.TankDrive errors
Calibrating your Victors may help as well.
It sounds like your Victor centre-points are different from each other. You can check to see if they're out of calibration with each other by measuring the voltage being applied to each motor when running. They should be close. Hold down the reset button until the LED beings flashing red and green. Apply PWM signal full-forward, then full-backwards, then neutral. Wait for the LEDs to stop flashing. -Shawn T. Lim... |
|
#6
|
||||
|
||||
|
Re: myRobot.TankDrive errors
Thanks! that seemed to work!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WindRiver Errors | ExarKun666 | C/C++ | 7 | 04-03-2009 20:32 |
| Errors on LabVIEW | PHSRobotics | NI LabVIEW | 12 | 11-02-2009 10:00 |
| WindRiver "TankDrive" | KRibordy | C/C++ | 4 | 13-01-2009 18:13 |
| Makefile Errors | neutrino15 | Programming | 1 | 29-01-2008 15:45 |
| CAMERA ERRORS!!!!!!!!!!!! | Hershey | Technical Discussion | 0 | 21-01-2005 18:59 |