View Single Post
  #81   Spotlight this post!  
Unread 16-03-2009, 15:26
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Silly Programming screw ups (funny)

we had our robot, and our target, and we were testing vision code, and enabled the robot, an it kept spinning to the right, we could not figure out why, then the target holder picked up the target, and it spun to the left. we had our x and y's mixed up

we were testing code later, and had this in our code:
int loop = 0;
...strcat((char*)loop, "OtherText)...
and our robot kept crashing. we thought it was the strcat, but it turned out to be that we were referencing memory at 0, basically corrupting the robots memory.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib