Go to Post Patience is the key to FIRST. - Pavan Dave [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 08-02-2008, 20:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Drive Function in EasyCPro, anyone?

Quote:
Originally Posted by JustineSHA View Post
...we also don't understand why at (20,0) one motor is faster than the other, and we move backwards.
The proper direction of motor control depends on which way you've wired your motors. The code can't know that unless you tell it. Isn't there a check box or two in the Drive setup block to select "reverse direction" on the output motors? One of them is probably checked. It sounds like you need to uncheck that one and check the other.

There are two common reasons for one motor to be faster than another with the same pwm control value. Some motors have a direction bias, and turn "forward" faster than they turn "backward". You probably have the motors mounted so one has to turn in the other direction from the other in order for both sides of the robot to go the same way, right? But you also probably are using the CIM motors for your main drivetrain, and those don't have a significant bias.

The other likely reason is that the Victor calibration thinks that neutral is a little bit higher than the 127 value the Robot Controller is putting out. If you go just a small amount away from neutral on the RC, and you've told the software that "forward" is one way on one motor and the other way on the other motor, one Victor sees a smaller "plus" control and the other sees a larger "minus" control. You can probably fix this by calibrating the Victors; the procedure is in the Victor 884 Users Guide on the IFI web site.
 


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
Upgrading EasyCPro 3.1.0.7 to 3.1.0.8 Mike Smith Programming 2 12-01-2008 15:24
Upgrading to easyCPRO koenig3456 Programming 5 17-01-2007 09:08
Motor drive function? Mike Programming 3 15-02-2006 11:55
Anyone have a good record function? farmer Programming 2 06-02-2005 20:33


All times are GMT -5. The time now is 19:08.

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