View Single Post
  #101   Spotlight this post!  
Unread 10-12-2007, 10:41
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,714
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Programming jokes

Quote:
Haha, I know the person who designed/consulted on the paper clip (he's a professor at Stanford). Apparently Microsoft listened to about 2% of his advice and that's why it turned out so badly.
Maybe he lacked the proper people skills. Many a great idea go mutiliated or unknown because someone doesn't speak up enough or that someone lacks the insight into how to be pushy enough to make the idea become a success.

(Java-C-MPLab pseudo-goullash code)
Code:
int rand = Math.rand() * 127;
int pos_neg = Math.rand;
if(pos_neg > 0.5) 
pos_neg = 1;
else 
pos_neg = -1;

//Drive Motors
pwm_04=pwm_05=(rand + 127);
pwm_06=pwm_07=(rand * pos_neg + 127);

//Arm
pwm_08=255; //Arms up!
pwm_09=(rand/2*pos_neg + 127);  //Wavy hands
This isn't a joke; this will be our autonomous algorithm next year if our students don't come up with anything to do in autonomous. Students be warned!
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub