Go to Post Another lesson is don't post on Chief Delphi disappointed, stop and evaluate first. Emotions suck sometimes. :-) - sircedric4 [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2008, 01:43
JustineSHA JustineSHA is offline
Registered User
FRC #2437
 
Join Date: Jan 2008
Location: Honolulu
Posts: 3
JustineSHA is an unknown quantity at this point
Exclamation Drive Function in EasyCPro, anyone?

Hello everyone! Our programming team is moving along progressively, but we still can't figure out what the numbers on speed and direction in the Drive Function exactly do.

We understand that making speed 20, and direction 0 will make the robot go forward... and we've also read over the tutorial on "USING LIBRARIES," but we're not quite sure how to effectively control the speed and direction of the robot... if you have any knowledge on these two factors, please share! It will be greatly appreciated by our team.

Thank you!~JustineSHA
  #2   Spotlight this post!  
Unread 08-02-2008, 08:26
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Drive Function in EasyCPro, anyone?

Speed = How fast to go
Direction = Which way to go

Drive ( 0 , 20) ; Speed is 0 (no forward movement) , Direction is 20 Turn
Driver ( -40 , 0 ) Drive Backward 40 , Direction is 0 (no turning)

Speed and direction range are 127 to -127
0 = Neutral
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #3   Spotlight this post!  
Unread 08-02-2008, 20:05
JustineSHA JustineSHA is offline
Registered User
FRC #2437
 
Join Date: Jan 2008
Location: Honolulu
Posts: 3
JustineSHA is an unknown quantity at this point
Re: Drive Function in EasyCPro, anyone?

Thank you! We were also thinking along those lines... however, we also don't understand why at (20,0) one motor is faster than the other, and we move backwards. We've double checked the PWM assignments and everything seems to be functioning properly- except the drive function.

We were also wondering what numbers exactly signify a left turn and right turn.
  #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,112
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.
Closed Thread


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 09:22.

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