View Single Post
  #1   Spotlight this post!  
Unread 19-10-2014, 01:36
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Motor suggestions for rubiks cube scrambler

As for programming, here is how I would do it:

j = random number between n and m (I'd do 25 and 50)

for (unsigned int i = 0; i < j;i++)
generate a random number 1 to your total number of motors

then turn that motor either 90 or 180 degrees.
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."