View Single Post
  #5   Spotlight this post!  
Unread 02-05-2011, 07:10 PM
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: Robot going left during autonomous

what are you seeing for output on speed values?

// get the default speed and turn rate at this time
speed = powerProfile[timeInSeconds];

this is the only code where it is set.
try making it a static rather than an array like this.
start simple. then get more complicated.

I am guessing that it is 0. That would explain your spinning. Either that or your one motor may not be initialized correctly (1,2) may not be the right ports. or it may we wired correctly.
__________________
"Never let your schooling interfere with your education" -Mark Twain
Reply With Quote