Go to Post I always mean what I say. I just don't always say what I mean. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-04-2008, 21:59
3DWolf's Avatar
3DWolf 3DWolf is offline
Boots - Head Programmer / 3D
AKA: Jake
FRC #1502 (Technical Difficulties)
Team Role: Programmer
 
Join Date: Dec 2006
Rookie Year: 2005
Location: Chelsea Michigan
Posts: 97
3DWolf is on a distinguished road
Send a message via AIM to 3DWolf Send a message via MSN to 3DWolf
Silly Programming screw ups (funny)

Post any silly programming errors, screw ups, etc here that you've made either in season or at nationals

My biggest one so far:
Nationals:
I was coding some side code for our demo board to simulate our braking system, but the guys putting it together used a type of valve I hadn't coded before, and when I was messing with it I turned a simple toggle into something strange. I was calling the toggle (with a trigger on a joystick) on the main processor loop (the 26.2 ms one) without any checks.
I turned our single fire brake toggle - INTO A JACKHAMMER. This little 2 inch stroke cylinder was firing in and out at an insane speed.

Then I had accidentally set our autonomous values backwards the first time so we drove backwards during a practice match.
__________________
You can call it the programming teams fault, but we'll just force your arguments nil.

There are 10 kinds of people in the world -> Those who understand binary and those who don't.

WYSIWYG - In FIRST: Greatness
  #2   Spotlight this post!  
Unread 19-04-2008, 11:53
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: Silly Programming screw ups (funny)

thinking that 0 is neutral.... well we hit the wall....
__________________
Is now an engineer thanks to FIRST.
  #3   Spotlight this post!  
Unread 19-04-2008, 12:41
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Silly Programming screw ups (funny)

Messing up some type math and making it roll over.

Let's just say for a couple matches last year we just told the driver not to go full throttle forward. Too bad it's hard to explain why that would make it go backwards.. =p
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
  #4   Spotlight this post!  
Unread 19-04-2008, 14:04
ComradeNikolai ComradeNikolai is offline
Registered User
AKA: Nicholas
FRC #2603 (Team Hornet)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Medina, Ohio
Posts: 203
ComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to beholdComradeNikolai is a splendid one to behold
Re: Silly Programming screw ups (funny)

I wrote out autonomous code, compiled it (no build errors, yes!) and put it on our school's server to use on the computer in the front of the room, where another kid downloaded it onto the robot. I told my coach it was ok to go ahead and test it... so he did... and it went full forward, raising the arm. He almost lost his projector from the ceiling, but found the power button first.
Moral of the story: do not test a robot in a confined space with lots of valuable things. Or, just don't trust me when I say it should work.
__________________
I cut myself shaving with Occam's razor.

  #5   Spotlight this post!  
Unread 19-04-2008, 15:46
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Silly Programming screw ups (funny)

In 2006 I was working on autonomous, and was useing the Limit_Mix() function, and forgot to add 2000 to the input. Before anyone could stop it it had draged a computer onto the floor, and ran into someone. After that I leared not to put the robot on the floor when testing, and I've never screwed the serial cables in again.
__________________
Eric Haskins KC9JVH
  #6   Spotlight this post!  
Unread 19-04-2008, 23:00
Chaos in a Can Chaos in a Can is offline
Joel Spadin
FRC #1736 (Robot Casserole)
Team Role: Programmer
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Peoria, IL
Posts: 58
Chaos in a Can is an unknown quantity at this point
Send a message via MSN to Chaos in a Can
Re: Silly Programming screw ups (funny)

Leaving the following line in the main while loop for the first match at Wisconsin:
Code:
autonomous_mode = p2_sw_aux1;
__________________
2006 Xerox Creativity Award
2007 General Motors Industrial Design Award
2008 Judges' Award
2009 Chrysler Team Spirit Award

  #7   Spotlight this post!  
Unread 20-04-2008, 00:49
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Silly Programming screw ups (funny)

My Junior year in Highschool (many moons ago), I was teaching the new programmers how to , well, program the robot. My pedagogical style is very "hands off" / "turn and burn". I knew that the code they had written wasn't going to do what they thought it was going to do, but I most certainly wasn't going to rob them of this learning experience.

Unfortunately, what it did do differed from both of our thoughts significantly. Such was the birth of the horrible offspring of "spin the bottle" and "chicken". It would boot, spin around, invariably stop pointing at either a person or the most valuable object in the room, and charge into it.

Always place your main disconnect in an accessible location.
If you don't, be sure that you design your robot so that you can ride it long enough to find said disconnect.
  #8   Spotlight this post!  
Unread 20-04-2008, 01:21
slavik262's Avatar
slavik262 slavik262 is offline
We do what we must because we can.
AKA: Matt Kline
FRC #0537 (Charger Robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Sussex, WI
Posts: 310
slavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to beholdslavik262 is a splendid one to behold
Send a message via AIM to slavik262
Re: Silly Programming screw ups (funny)

This year I wrote code so that when our secondary driver held a switch, the claw on our robot would automatically grab a track ball if one entered the claw (we did this using an IR rangefinder). This code was finished and first tested during a competition match at the West Michigan Regional . Due to an unfortunate glitch, the claw refused to relinquish the first ball it grabbed. When the team asked what was going on, I quipped:

"You said you wanted the claw to automatically grab the ball. You never said anything about letting go of it."

The glitch was gone five minutes later.
__________________

Last edited by slavik262 : 20-04-2008 at 01:23.
  #9   Spotlight this post!  
Unread 20-04-2008, 02:14
Qbranch Qbranch is offline
wow college goes fast.
AKA: Alex
FRC #1024 (Kil-A-Bytes)
Team Role: Alumni
 
Join Date: Apr 2006
Rookie Year: 2006
Location: Indianapolis
Posts: 1,174
Qbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond reputeQbranch has a reputation beyond repute
Re: Silly Programming screw ups (funny)

2006:

The first time we ran our autonomous in competition we did everything right... except for setting the one little bit that turns the PID on to run the flywheel motors on the ball launcher... basically, it looked like the robot threw up in multicolorful poof ball glory.

Another time, our robot was just as happy about shooting 8 balls in rapid succession at an unsuspecting FIRST sponsor wearing a bright green shirt.

2008:

When first beginning to play with the gyro, I didn't notice (for a few hours) that negative was left and positive was right (opposite math).

-q
__________________
Electrical Engineer Illini
1024 | Programmer '06, '07, '08 | Driver '08
  #10   Spotlight this post!  
Unread 20-04-2008, 18:40
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)

2006:
not so much a programming error, but i was wearing a bright green shirt while programming the robot. I was tuning the camera at the time, and stood next to the goal. the robot went out, and looked like it had found the target, except it kept running towards it. So, i get out of the way and go towards the disable switch and the thing starts to follow me, and proceeds to chase me around our practice field, shooting balls at me while i attempt to get to the button.
funny thing is, it never shot balls as well at the goal as it did at me. ow.

2007:
i used reverse logic for the camera positioning, which led it to spin out of control, while still having control over the arm. one thing led to another, and centripetal acceleration made the robot throw the tube at me. more of a laugh than an ow.

2008:
oh god.
so while programming hybrid it wasn't a priority for the first couple of runs to have the arm in the 'tucked' position- we only wanted it to drive around. So its going at high speed to the turn, and doesnt do it, instead ramming into the fencing on the other side, tearing the gripper to peices. oops.
at the championships i was making corrections for wall distance for the middle ball, and derived it to 285 counts. i typed 385. the robot hit the 3rd ball for no reason i could figure until i saw the code.
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #11   Spotlight this post!  
Unread 20-04-2008, 20:06
tseres's Avatar
tseres tseres is offline
obsessed with FIRST...
FRC #1565 (Think Tank Tech)
Team Role: Leadership
 
Join Date: Apr 2007
Rookie Year: 2007
Location: Cambridge, ON
Posts: 305
tseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of lighttseres is a glorious beacon of light
Re: Silly Programming screw ups (funny)

this is kind of a funny thing. you see, on our team, everything is the programmers fault, no matter what. it's the way it is. i'm the programmer. we had the robot ready to test, and we powered it on, at which point it flew straight into a heavy table. it was "my fault". turns out another guy was getting ready to go and accidentally buy his backpack on the xbox controller
__________________


  #12   Spotlight this post!  
Unread 20-04-2008, 20:27
ABlackburn's Avatar
ABlackburn ABlackburn is offline
Registered User
AKA: Andrew
FRC #0075 (Roboraiders)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: New Jersey
Posts: 8
ABlackburn is an unknown quantity at this point
Re: Silly Programming screw ups (funny)

testing code on our old 2005 robot in our school hallways late at night. Running autonomous it would drive straight while extending the arm (a VERY STRONG TELESCOPING ARM) and the SPIN very quickly. now keep in mind our arm that year could reach 11 feet, and our robot could spin in place in about 2 seconds. Math geeks know this means tip of that arm could max at a speed of about 34.54 feet per second! now, our hallways in our school aren't even 11 ft across, so needless to say we banged up a few lockers. One guy on our team, his name is John, was watching it the whole time, and noticed it always was having a problem after it went something like 13 ft. He says "OK, if it happens again, its gonna hit locker.......*counting to himself quick*.......locker number 874." So while he's goofing off, we get the robot hooked up to a laptop to see what our display says while it's running. So off the robot goes, and after 13 feet we started getting a repeating message on the screen VERY quickly. We pause it for a second, and it say:


"PROBLEMS, ISSUES, CAN'T TAKE IT. RESTARTING. PROBLEMS, ISSUES, CAN'T TAKE IT. RESTARTING. PROBLEMS, ISSUES, CAN'T TAKE IT. RESTARTING. PROBLEMS, ISSUES, CAN'T TAKE IT. RESTARTING. PROBLEMS, ISSUES, CAN'T TAKE IT. RESTARTING. PROBLEMS, ISSUES, CAN'T TAKE IT. RESTARTING. PROBLEMS, ISSUES, CAN'T TAKE IT. RESTARTING."...............



John, walks over and inspects the lockers, grins and says "CALLED IT!" (it hit the locker right in the dead center)
__________________
props to anyone who knows what I was doing every day during competition HINT: I didn't see any of my teams matches in Atlanta, I only made it to the dome for the Einstein events, I was that kid that you saw in WAY too many pits besides his own, and if you asked me for a PWM cable I would've pulled one out my pocket and handed it to you.

  #13   Spotlight this post!  
Unread 20-04-2008, 20:30
ABlackburn's Avatar
ABlackburn ABlackburn is offline
Registered User
AKA: Andrew
FRC #0075 (Roboraiders)
Team Role: Programmer
 
Join Date: Feb 2006
Rookie Year: 2005
Location: New Jersey
Posts: 8
ABlackburn is an unknown quantity at this point
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by tseres View Post
this is kind of a funny thing. you see, on our team, everything is the programmers fault, no matter what. it's the way it is. i'm the programmer. we had the robot ready to test, and we powered it on, at which point it flew straight into a heavy table. it was "my fault". turns out another guy was getting ready to go and accidentally buy his backpack on the xbox controller
on our team everything is the electrical sub-team's fault
__________________
props to anyone who knows what I was doing every day during competition HINT: I didn't see any of my teams matches in Atlanta, I only made it to the dome for the Einstein events, I was that kid that you saw in WAY too many pits besides his own, and if you asked me for a PWM cable I would've pulled one out my pocket and handed it to you.

  #14   Spotlight this post!  
Unread 20-04-2008, 20:46
vivek16's Avatar
vivek16 vivek16 is offline
Whoa! college pilot.
AKA: vivek
FRC #2264 (trojan robotics)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: plymouth, minnesota
Posts: 1,227
vivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond reputevivek16 has a reputation beyond repute
Send a message via AIM to vivek16 Send a message via MSN to vivek16
Re: Silly Programming screw ups (funny)

Last year, we had a box on wheels and it was put on the field the wrong way. It ran into the wall...

Yeah, we fix everything in the programming.... Including the welds

-Vivek
__________________
"we don't build robots, we build people"
  #15   Spotlight this post!  
Unread 20-04-2008, 21:05
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Silly Programming screw ups (funny)

Quote:
Originally Posted by ABlackburn View Post
on our team everything is the electrical sub-team's fault
On my team I'm both, so it's alway mechanical.
__________________
Eric Haskins KC9JVH
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: I Love UPS! dubious elise Extra Discussion 15 05-05-2006 16:43
pic: UPS with UPS Kevin Kolodziej Extra Discussion 10 04-05-2005 12:57
I am silly. FotoPlasma Chit-Chat 15 07-01-2003 09:55
silly fun Mark Hamilton Chit-Chat 8 29-10-2002 13:56


All times are GMT -5. The time now is 07:15.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi