View Single Post
  #80   Spotlight this post!  
Unread 16-03-2009, 13:16
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Silly Programming screw ups (funny)

One of the programmers came in with a copy of the code on his laptop. He said he had "optimized" the code.

any guesses as to what happened?


thanks to the wonders of parallel programming, our new programmer introduced several race conditions and deadlocks into the code. We spent 3 hours looking for all of them before giving up and returning to the previous (more messy) version of the code. what fun.


more errors... labview's included PID loop didnt behave like any pid loop we had seen in the past (we tend to keep our kP kI and kD independent of one another), which led to lots of fun while tuning this thing. the weirdest error was if you set the range on the PID loop to "1-255", the target value is "setpoint * range_midpoint / kP". our turret tried to spin 127,000 encoder ticks!
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY