View Single Post
  #11   Spotlight this post!  
Unread 16-11-2009, 17:10
clwilligham clwilligham is offline
Registered User
FTC #2845 (Team Duct Tape)
Team Role: Programmer
 
Join Date: Nov 2009
Rookie Year: 2006
Location: Florida
Posts: 4
clwilligham is an unknown quantity at this point
Re: [FTC]: Spin Motor Wind Down: Programming

thanks. that would help a lot.

in the mean time something like this might help for anyone else trying to keep there motors alive:

Code:
int motorSpeed = 100;


void powerDown()
{
  if(time10[T1] > 10 && motorSpeed > 10)
  {
    time10[T1] = 0;
    motorSpeed --;
  }
  else
  {
    motorSpeed = 0;
  }
  motor[shooter] = motorSpeed;
}
i haven't tested this either, but it is pretty simple and based off of previous functions from last year which worked consistently.

Last edited by clwilligham : 16-11-2009 at 17:15.
Reply With Quote