Go to Post I hate to do say it with these words but...We're all in this together. - dellagd [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-02-2009, 18:06
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
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.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2009, 23:02
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
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.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #3   Spotlight this post!  
Unread 08-02-2009, 02:36
Chief Pride's Avatar
Chief Pride Chief Pride is offline
&lt;3
AKA: James Kiefer
no team
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Kalamazoo, MI
Posts: 653
Chief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond repute
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2009, 09:08
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
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);
}
this is only prevalent at speeds of -.45 to .45
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #5   Spotlight this post!  
Unread 08-02-2009, 11:11
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
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...
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #6   Spotlight this post!  
Unread 08-02-2009, 17:37
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: myRobot.TankDrive errors

Thanks! that seemed to work!
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 14:53.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi