Go to Post Comments and Documentation: Use them! You would never believe how fast you will forget how something works, especially when things are flying at you so fast. Other/future programmers will understand what you did and why you did it. - BigJ [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-03-2010, 14:17
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Re: It is impossible... ...until there is no other way...

Quote:
Originally Posted by Formerly Famous View Post
Another thing I would say is in the design. Does anyone else have times when they sit there for hours thinking about something and how to fix this one little problem, and then someone walks in and tells you the solution? I know that has happened to me many times. I am always shocked at how simple an impossible solution is.
I had a similar experience when working on autonomous code in 2008. We had the robot running laps around the practice field just fine, using encoders for distance and a gyro for turns. We had SuperShifters on the robot. Our turn loop wasn't very well-tuned, so we had to turn corners in first gear while going forward in second gear.

So the robot would go across the field in second gear, shift to first, turn left 90 degrees, traverse the field (still in first) turn left 90 degrees, shift to second, go across the field...etc until time ran out.

The problem is, the second turn would always overshoot by 10-20 degrees. We had no idea why this was occurring. We looked through the code and verified that the code being called for the first turn was exactly the same as the code being called for the second turn. Both turns took place in first gear, both were 90 degrees using the same feedback loop, and both were followed immediately by a straight section. We spent hours working on this, but couldn't figure out why the turns should be any different.

Then, we asked a mechanical mentor to watch autonomous run. He immediately understood the problem: "you're shifting into second gear immediately after that second turn. It takes about a half-revolution for the gears to engage after a shift."

Swapping the position of two lines of code, to stop the motors before shifting gears, solved the problem.
__________________
Go directly to queue. Do not pass pit.
Reply With Quote
  #2   Spotlight this post!  
Unread 30-03-2010, 14:45
thefro526's Avatar
thefro526 thefro526 is offline
Mentor for Hire.
AKA: Dustin Benedict
no team (EWCP, MAR, FRC 708)
Team Role: Mentor
 
Join Date: Aug 2006
Rookie Year: 2005
Location: New Jersey
Posts: 2,599
thefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond repute
Send a message via AIM to thefro526 Send a message via MSN to thefro526
Re: It is impossible... ...until there is no other way...

I have two, both of which are fresh in my mind from last weekend.

Sometime Friday afternoon my Driver Begins to complain about the left side of the drive, he says it feels "Funny". We get the robot off the field and look at the drive, and nothing appeared to be wrong, I turned it by hand and there was no binding, no noise, and it just felt okay. So, I told him we'll worry about it if it becomes serious. Three or Four Matches go by and we notice our Autonomous Mode is drifting hard towards the side in question, and it almost looks like there's some sort of mechanical problem with the drive, and each time I spin it and it feels okay, so I'm stumped and just tell him to Drive through it, which he did very well. Fast forward to Lunch Break before Eliminations, when one of the other mentors tells us that one of the PWMs to the left side of the drive was unplugged... We plugged it in and it worked perfect.

Match 64 was to be our final Qualifying match, and it was with 103, and I've been dying to play alongside 103 for years. So the match starts, our Autonomous goes and the robot stops like usual, and then a little bit of smoke starts coming from the robot. A little bit of smoke turns into a lot of smoke, at which point the match is called. I ran onto the field without hesitation and turned the robot off and open the cover as more smoke came out. We began frantically looking for the problem (still on the field) and I see that two of our PWM Cables have shorted together which caused them to burn the insulation off of the wires. Luckily, due to the setup of Philly, our head pit guy (aka Pitmaster) was standing within yelling distance of the field, and I got him to run back to the pits and grab a handful of PWMs. I rewired the bot, in the most quick and nasty fashion I could, and we went on to play the match. We won the match 5 to 3. Most people saw the smoke and figured that our robot was toast, but some quick thinking saved it, and a win.
__________________
-Dustin Benedict
2005-2012 - Student & Mentor FRC 816
2012-2014 - Technical Mentor, 2014 Drive Coach FRC 341
Current - Mentor FRC 2729, FRC 708
Reply With Quote
  #3   Spotlight this post!  
Unread 30-03-2010, 16:34
FRC4ME FRC4ME is offline
Registered User
FRC #0339
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Fredericksburg, VA
Posts: 324
FRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant futureFRC4ME has a brilliant future
Re: It is impossible... ...until there is no other way...

Quote:
Originally Posted by thefro526 View Post
Fast forward to Lunch Break before Eliminations, when one of the other mentors tells us that one of the PWMs to the left side of the drive was unplugged... We plugged it in and it worked perfect.
Heh, this reminds me once again of 2008. We wanted to make the robot maintain a straight heading in autonomous mode. So I added a gyro and a PI loop, which worked very well. So well, in fact, that we decided to use it in teleop as well. It did an excellent job of keeping our four-CIM, six-wheel drive train going in the right direction.

So we went through VCU with this drive system, and for the most part, it worked wonderfully. There was just one problem: our driver kept complaining that the drive was slower than usual. He said it didn't seem as powerful as it used to be. When asked if he had any difficulty turning, he said no: it just didn't feel as powerful as before. We figured the motors and bearings were just wearing down and kept playing without any changes. We made it to the quarter-finals, I believe.

Fast-forward to Chesapeake, and we had completely forgotten about the drive train. That is, until we were testing some sort of autonomous routine that required me to print out the actual voltages the PI drive loop was sending to the motors. I instantly knew something was wrong: the software was sending half the power to the right motors that it was sending to the left motors, and yet the robot was driving perfectly straight! We investigated the problem, and found that one of the left motors was completely dead. No one knows how long it hadn't been working; it was probably dead before ship. It could even have been dead since before we installed it in the robot! The PI loop was so good at keeping the robot straight, it was able to compensate for a dead motor well enough to make the problem virtually invisible. Unless, of course, we tried to push another robot with all four of its motors working.
__________________
Go directly to queue. Do not pass pit.
Reply With Quote
  #4   Spotlight this post!  
Unread 30-03-2010, 20:49
Mr. Pockets's Avatar
Mr. Pockets Mr. Pockets is offline
Optimist Alumnus
AKA: Nathan
FRC #1189 (Gearheads)
Team Role: Alumni
 
Join Date: May 2009
Rookie Year: 2009
Location: Southeast Michigan
Posts: 551
Mr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond reputeMr. Pockets has a reputation beyond repute
Re: It is impossible... ...until there is no other way...

So we were weighing our robot before re-bagging it. We had built our hanger and upper superstructure separate and easily detachable so that we could keep working on the hanger as part of the withholding allowance.

Anywho, so we had apparently already weighed the upper segment and it had come in at like 44 lbs. We put the bottom half on the scale and it comes back at 80 lbs. So naturally, what with it being only a day or two before competition, everyone is less than happy. There were a bunch of bouncing suggestions, but quite frankly 4 lbs is quite holes to drill.

While everyone is proposing different ideas I went over to the upper section with a few of the other mentors. We figured that it was worth a shot weighing it again, it'd have been a big shame if the robot were torn apart over a mistaken weight. To everyone's surprise and relief the upper half had managed an impressive dieting program over the past few days. The scale read it in at 36 lbs. We're still not quite sure how the whole thing happened, but we certainly aren't complaining.

When it was inspected and weighed at competitions it came in at 120 lbs exact. Gotta love those sort of numbers ^_^
__________________
Year 1: Learned about Projects
Year 2: Learned about People
Year 3: Learned about Pride
Year 4: Learned about Promise


I came to robotics for the robot, but stayed for the people

2012/13 Melancholic retiree and wistful dreamer
Reply With Quote
  #5   Spotlight this post!  
Unread 30-03-2010, 22:42
Grim Tuesday's Avatar
Grim Tuesday Grim Tuesday is offline
Registered User
AKA: Simon Bohn
FRC #0639 (Code Red)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Baltimore MD (JHU)
Posts: 1,605
Grim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond repute
Re: It is impossible... ...until there is no other way...

Quote:
Originally Posted by thefro526 View Post

Match 64 was to be our final Qualifying match, and it was with 103, and I've been dying to play alongside 103 for years. So the match starts, our Autonomous goes and the robot stops like usual, and then a little bit of smoke starts coming from the robot. A little bit of smoke turns into a lot of smoke, at which point the match is called. I ran onto the field without hesitation and turned the robot off and open the cover as more smoke came out. We began frantically looking for the problem (still on the field) and I see that two of our PWM Cables have shorted together which caused them to burn the insulation off of the wires. Luckily, due to the setup of Philly, our head pit guy (aka Pitmaster) was standing within yelling distance of the field, and I got him to run back to the pits and grab a handful of PWMs. I rewired the bot, in the most quick and nasty fashion I could, and we went on to play the match. We won the match 5 to 3. Most people saw the smoke and figured that our robot was toast, but some quick thinking saved it, and a win.

Oh man, your win in that match was amazing. I have been wondering for quite a while now why your robot went up in smoke. I was also surprised to see that the E-Stop button didn't work (I have this memory of your driver jamming it and yelling at the refs...)
Reply With Quote
  #6   Spotlight this post!  
Unread 31-03-2010, 10:03
thefro526's Avatar
thefro526 thefro526 is offline
Mentor for Hire.
AKA: Dustin Benedict
no team (EWCP, MAR, FRC 708)
Team Role: Mentor
 
Join Date: Aug 2006
Rookie Year: 2005
Location: New Jersey
Posts: 2,599
thefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond reputethefro526 has a reputation beyond repute
Send a message via AIM to thefro526 Send a message via MSN to thefro526
Re: It is impossible... ...until there is no other way...

Quote:
Originally Posted by Grim Tuesday View Post
Oh man, your win in that match was amazing. I have been wondering for quite a while now why your robot went up in smoke. I was also surprised to see that the E-Stop button didn't work (I have this memory of your driver jamming it and yelling at the refs...)
Thanks! I was actually the one who hit the E-Stop (Nick, the driver may have hit it after me - I'm sure it was hit more than once), it's the first time I've ever had the pleasure of doing so since I first got involved back in 2005. In retrospect, hitting the E-Stop was a bit pointless, because the only way to get the smoke to stop was to turn the robot's power off - but at the time it seemed like the correct action.

I'm still waiting for Pictures of the smoke cloud to surface...
__________________
-Dustin Benedict
2005-2012 - Student & Mentor FRC 816
2012-2014 - Technical Mentor, 2014 Drive Coach FRC 341
Current - Mentor FRC 2729, FRC 708
Reply With Quote
  #7   Spotlight this post!  
Unread 31-03-2010, 10:34
kirtar kirtar is offline
Alumnus
FRC #0461 (Westside Boiler Invasion)
Team Role: Alumni
 
Join Date: Jan 2008
Rookie Year: 2007
Location: West Lafayette, IN
Posts: 169
kirtar will become famous soon enough
Re: It is impossible... ...until there is no other way...

*looks at title*
I cite Clarke's Three Laws of Prediction (couldn't resist)
  1. # When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
  2. The only way of discovering the limits of the possible is to venture a little way past them into the impossible.
  3. # Any sufficiently advanced technology is indistinguishable from magic.
__________________
Reply With Quote
Reply


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
is there a way to invert a motor live? Must Be Drama NI LabVIEW 4 02-02-2010 20:55
Is there a Way To refrence a true false statement Must Be Drama NI LabVIEW 15 02-02-2010 01:08
Is there a way to display Cmaer Live footage? Tottanka FRC Control System 0 12-12-2008 11:21
Turning; easier one way or the other? FizMan Technical Discussion 14 03-07-2004 14:03
Legal way to remove bottles? and other questions jrukes Off-Season Events 4 15-10-2001 22:35


All times are GMT -5. The time now is 14:25.

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