Go to Post Woodie Flowers would like to win the Chuck Norris award. - Andy Baker [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
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 03-02-2010, 23:15
135FusionTom 135FusionTom is offline
Registered User
FTC #0135
 
Join Date: Feb 2010
Location: San Diego
Posts: 3
135FusionTom is an unknown quantity at this point
Question [FTC]: Robot problems with motor movment

Hello everyone, our team has been having a problem with one of our drive motors lately. The motor first moves in the opposite direction that we want it to, and then after about half a second it moves in the correct direction. We have heard that switching the polarity of the wires connected from the motor controllers to the motors is a way to fix this, but all of the teams who we have talked to that were having this problem had had the problem with shooter motors rather than the drive. Any ideas on how to fix this would be much appreciated.

Thanks,

Tom and Michael, 135 Fusion.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2010, 23:52
Monty Python Monty Python is offline
Registered User
no team
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Philadelphia
Posts: 83
Monty Python has a spectacular aura aboutMonty Python has a spectacular aura aboutMonty Python has a spectacular aura about
Re: [FTC]: Robot problems with motor movment

Can you post the code that you're using?
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2010, 08:10
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: [FTC]: Robot problems with motor movment

Tom and Mike,
Are you using the feedback from the motor? It is possible that the code is written in such a way that it runs that way.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2010, 08:22
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: [FTC]: Robot problems with motor movment

Tom and Mike,

Assuming that you are using the competition templates, this could be a problem with your initialization (running in one direction) versus your main loop (reversing direction).

Exact cause could be different depending on your programming language choice.

I agree that posting your code is the fastest way for people to help.

You should also be sure that you have the correct firmware installed in your NXT brick and that the latest templates were used.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #5   Spotlight this post!  
Unread 04-02-2010, 09:01
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: [FTC]: Robot problems with motor movment

It will also be helpful to note exactly when this occurs. At the beginning of Autonomous, at the beginning of Teleop after Auto or in Teleop only mode?
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #6   Spotlight this post!  
Unread 04-02-2010, 18:34
Michael Coleman's Avatar
Michael Coleman Michael Coleman is offline
Registered User
no team
 
Join Date: Nov 2006
Rookie Year: 2001
Location: Orlando, Florida
Posts: 82
Michael Coleman is a glorious beacon of lightMichael Coleman is a glorious beacon of lightMichael Coleman is a glorious beacon of lightMichael Coleman is a glorious beacon of lightMichael Coleman is a glorious beacon of light
Re: [FTC]: Robot problems with motor movment

Are encoders mounted on the motors?

If yes, are they wired correctly? Are they coded correctly? If using ROBOTC, are the encoders correctly setup in the Motor Controller settings?

If no, and using ROBOTC, verify that the encoders are not selected in the Motor Controller settings.
Reply With Quote
  #7   Spotlight this post!  
Unread 05-02-2010, 11:31
135FusionTom 135FusionTom is offline
Registered User
FTC #0135
 
Join Date: Feb 2010
Location: San Diego
Posts: 3
135FusionTom is an unknown quantity at this point
Re: [FTC]: Robot problems with motor movment

Thanks everyone, your input is much appreciated. I'm not one of the programmers on the team, but I think that I can get in touch with Michael to ask him about your questions. I do know that we are using Robot C, and that we don't use motor encoders. The problem occurs during Teleop and autonomous. Anyways, as I said, Michael would know more about the code, so I'll contact him and ask about all of these questions and for the code.

Thanks,

Tom.
Reply With Quote
  #8   Spotlight this post!  
Unread 08-02-2010, 15:05
135FusionTom 135FusionTom is offline
Registered User
FTC #0135
 
Join Date: Feb 2010
Location: San Diego
Posts: 3
135FusionTom is an unknown quantity at this point
Smile Re: [FTC]: Robot problems with motor movment

TeleOp Program.c

Here's the code. Thanks again for helping us out.

Tom.
Reply With Quote
  #9   Spotlight this post!  
Unread 08-02-2010, 16:15
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: [FTC]: Robot problems with motor movment

Tom & Mike,

First of all. Please be absolutely sure that you have the very latest RobotC (v2.01) installed on your computer and that you have downloaded the very latest firmware version (v7.88) to your brick.

Next, open a new program in RobotC using the Teleop template that comes with RobotC. You will notice that it has an empty initializeRobot() routine that is called from the main task just before the waitForStart() statement.

Please add this back into your code and then put the following statements into initializeRobot():

Code:
    motor(leftMotor) = 0;
    motor(rightMotor) = 0;
    motor[beltMotor] = 0;
    motor[feederMotor] = 0;
    motor(shooterMotor) = 0;
If neither of these actions solves your problem, you may have to find someone smarter than me to help you.

Please let me know how you make out.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
Reply With Quote
  #10   Spotlight this post!  
Unread 09-02-2010, 09:57
l0jec l0jec is offline
Registered User
no team
 
Join Date: Oct 2009
Rookie Year: 2004
Location: St. Louis, MO
Posts: 52
l0jec has a spectacular aura aboutl0jec has a spectacular aura about
Re: [FTC]: Robot problems with motor movment

You issue is likely with floating the motors in ROBOTC:
Code:
    else
    {
      motor(shooterMotor) = 0;
      bFloatDuringInactiveMotorPWM = true;
    }
I've notice some erratic behavior if you set a motor, change the bFloatDuringInactiveMotorPWM flag and then set the motor again. Remember that the flag affects all your motors and it seems to only affect motors when you actually set a motor (if you set a motor and then flip the flag, ROBOTC will not apply the coast/float flag until you set the motor again).
You may want to just always float or change the flag back and forth every time before you set any of your motor outputs.
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
[FTC]: [FTC]: Motor Problems fqzeng FIRST Tech Challenge 3 16-02-2009 19:12
[FTC]: Problems with Motor Encoders? FTC 2891 FIRST Tech Challenge 2 16-02-2009 19:03
[FTC]: Random Error with FTC motor control Xaphiinia FIRST Tech Challenge 2 01-12-2008 15:39
[FTC]: FTC Servo-Motor Problem with Labview dnhansen FIRST Tech Challenge 1 26-10-2008 00:43
[FTC]: [FTC] Motor Controller problems michael714 FIRST Tech Challenge 4 14-10-2008 00:33


All times are GMT -5. The time now is 12:58.

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