![]() |
Re: Stupidest Programming Mistakes
At the meeting last week, I managed to finish the exponential drive code (Excel saved my butt there) and loaded it into the robot. Putting it up on blocks (always a good idea with new code) I noticed that it ran fine in reverse, but when the joystick was pushed forward the wheels started turning fast then slowed to a stop. My problem? I had forgotten to add 127 to the value from the look-up table... stupid stupid stupid.
|
Re: Stupidest Programming Mistakes
When i was testing my custom joystick mixing code i forgot to add 2000 to the value before i sent it to the Limit_Mix Function. The robot was on the floor and wnet full reverse it ran over one person and finaly ran into a workbench before anyone could shut it off.
|
Re: Stupidest Programming Mistakes
While one of our programmers was cleaning up the code, he accidentally deleted a line that said *DO NOT DELETE THIS LINE*. Well anyways it gave us quite a few headaches in Milwaukee.
|
Re: Stupidest Programming Mistakes
Quote:
|
Re: Stupidest Programming Mistakes
This isnt as stupid as it was an accident but I'm still not going to mention the guy who wrote it:
We had a winch system that would connect to our drive motors. The point was to engage the winch when the cable was taken off the robot and hooked on the bar (2 years ago). Well, he engaged the winch during autonomous and the aircraft cable (which doesnt break) was wraped around the frame of the robot and the dead reckoning code simply drove the motors. The cable just got tighter and tighter. Needless to say the 1/2 inch steel tubing was a little bent and the entire frame looked like a car wreck. Thats when we decided that only one guy should make the programming mistakes. |
Re: Stupidest Programming Mistakes
Quote:
|
Re: Stupidest Programming Mistakes
The stupidest programming mistake:
Assuming the programmer is driving. |
Re: Stupidest Programming Mistakes
Hehehe, of course semicolons r an issue.
The biggest mistake was working on autonomous. It was at nationals and I still dont know what I did wrong but fixed it. As soon as autonomous started the bot drove forward then started spinning to the left firing into the crowds, judges, everywhere else. |
Re: Stupidest Programming Mistakes
One stupid mistake I made at one point was that I forgot to close something off. I was too lazy to go back and look for it, so I just added a random "}" at the end of the code. Problem fixed! :D
|
Re: Stupidest Programming Mistakes
Quote:
That's why you always save a copy of the default code. |
Re: Stupidest Programming Mistakes
Quote:
|
Re: Stupidest Programming Mistakes
Was working on the Marine Biology Study for AP Computer Science AB, and had was running through making a fish (was easy after the first 5 or 6 we made).
All of a sudden, STACK OVERFLOW? What in the world? isolated it to a method that returned a class variable, myID. That method was one line, it couldn't be the issue. Lo and behold, it was pointed out: public int myID() { return myID(); } :( |
Re: Stupidest Programming Mistakes
i loaded the defualt code from last year, and the robot just started going. It ran into a table and knocked everything over. Luckly it wasnt facing the otherway becasue it would have went down the road.
|
Re: Stupidest Programming Mistakes
Quote:
|
Re: Stupidest Programming Mistakes
Quote:
|
| All times are GMT -5. The time now is 19:07. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi