Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Stupidest Programming Mistakes (http://www.chiefdelphi.com/forums/showthread.php?t=43343)

Pat Fairbank 07-08-2006 23:31

Re: Stupidest Programming Mistakes
 
On Thursday at BAE I was kind of embarrassed because the audience kept laughing when our robot would shoot its 10-ball clip clear over the driver station wall every autonomous mode (and nowhere near the centre goal), due to poor aiming code.

Well, I had been steadily increasing the gain multiplier on the turret aiming routine between the practice matches, and couldn't understand why it wasn't getting any better, so I just kept upping the parameter. :rolleyes:

About four matches in I realized I had been downloading the same, wrong .HEX file to the controller every time, so I downloaded the correct one to test during the next match. Of course, at this point the gain multiplier was about ten times what it should have been, so this time the balls went flying in all directions as the turret oscillated crazily.

Luckily it was just practice day.
(Even luckier, the next time I got to test out a new gain value was during the first qualification match, and it worked 10 for 10. :))

Qbranch 08-08-2006 14:26

Re: Stupidest Programming Mistakes
 
Was figuring out the kinematics of how to make the arm on our '05 bot to move to a position, and couldnt figure out why the second link of the arm wouldn't move...

Well i forgot all about the part where when i first started writing the code i had the arm set to neutral so i wouldnt hurt myself :yikes:

So:

<Fancy Code>
...

ArmMotor=127;
TxData(&txdata); :ahh:


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