Go to Post Just so you don't spend too much time on non-clues ... now you can all go back to the real one! :D - Libby K [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 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
  #2   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