Go to Post "I'd like the teeter-totter..." - Billfred [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 04-05-2002, 16:45
srawls's Avatar
srawls srawls is offline
Registered User
#0122 (Nasa Knights)
 
Join Date: Dec 2001
Location: Yorktown
Posts: 507
srawls is an unknown quantity at this point
Send a message via AIM to srawls
style

All of us programmers know we have to keep style in the code somehow, so my question is what did you do to the code, that you didn't really have to do, but you did cause it was just plain cool. I'll start off. Our mentor asked us to have version numbers for our program files, so when we modified the code we saved it as the next version number. Well, there's nothing fun about 1,2,3 ... so I added some style Basically, the version number approached pi, so the closer an aproximation each file was to pi, the newer the code was. I was also gonna make the code rhyme, but that didn't last long

Stephen
  #2   Spotlight this post!  
Unread 04-05-2002, 17:53
K-RAD K-RAD is offline
Registered User
#0116 (Epsilon Delta)
 
Join Date: Feb 2002
Location: Herndon, VA
Posts: 3
K-RAD is an unknown quantity at this point
Send a message via AIM to K-RAD Send a message via Yahoo to K-RAD
Dance code that makes the robot turn left and right and makes the LEDs on the operator interface toggle on and off. No one ever bothered to test it out because the only way to activate it was to have 3 OI conditions met that would never happen on the field occur in a certain order.

Oh, and I opimitized the code to be 43% smaller when tokenized. I was the only one who could read it
__________________
MTV is my source for new and original music
  #3   Spotlight this post!  
Unread 04-05-2002, 20:49
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
That's an interesting concept: Easter Eggs in FIRST Robots!
  #4   Spotlight this post!  
Unread 04-05-2002, 22:27
Gui Cavalcanti's Avatar
Gui Cavalcanti Gui Cavalcanti is offline
Robogeek
no team
Team Role: College Student
 
Join Date: May 2001
Rookie Year: 2001
Location: Needham, MA
Posts: 224
Gui Cavalcanti is a name known to allGui Cavalcanti is a name known to allGui Cavalcanti is a name known to allGui Cavalcanti is a name known to allGui Cavalcanti is a name known to allGui Cavalcanti is a name known to all
Send a message via AIM to Gui Cavalcanti
Heh...

Our robot this year could have been easily controlled with the default program, unfortunately. So Linda and I sat down and wrote out a line of code containing some 50 characters for each motor that would essentially do nothing on a perfectly-working robot but would get rid of the friction on the drive train otherwise (as in, your robot would always be getting a little more power than it would be with motor = joystick if you calibrate it correctly).

I think WildStang should look into a pneumatic-driven pen holder. That way, they can deploy it at the end of a match and crab around, spelling out "111 forever" or some such. That would be quite interesting.

I know it's what I've been threatening to do to my team for awhile, since I've usually been the only programmer (Except it's 422 forever... yeah...)
__________________
Gui Cavalcanti

All-Purpose College Mentor with a Mechanical Specialty

Franklin W. Olin College of Engineering, Class of 2008
  #5   Spotlight this post!  
Unread 13-05-2002, 15:27
VanWEric VanWEric is offline
Registered User
#0250 (Dynamos)
 
Join Date: Feb 2002
Location: NY
Posts: 86
VanWEric is an unknown quantity at this point
data

When our programming cell got bored we began to use the eeprom as our own personalized bbs. there was poetry and song writing. It was a work of art. if i ever get unlzay enough ill post some of the better quips.
  #6   Spotlight this post!  
Unread 13-05-2002, 18:31
srawls's Avatar
srawls srawls is offline
Registered User
#0122 (Nasa Knights)
 
Join Date: Dec 2001
Location: Yorktown
Posts: 507
srawls is an unknown quantity at this point
Send a message via AIM to srawls
hahaha, i like that. if we actually have a programmer besides me next year we might decide to do that too. anyway, i'll post something else i did for style, but it wasn't with the code. well, team 314 'Big Mo' was passing out straw hats with their team name in orange lettering on them. i got one to protect my head from the sun, and got to playing with it durring the awards ceramony. i took off the 'M' so the hat now reads 'Big O.' only 3 other people on my team understood the computer science reference there, the rest took a very different meaning to it (if you know what that is, i honestly didn't even know about that untill they told me, oh well, i still wear the hat for Big O notation)

Stephen
  #7   Spotlight this post!  
Unread 13-05-2002, 18:42
Andrew Rudolph's Avatar
Andrew Rudolph Andrew Rudolph is offline
Git 'em!
no team (Robot in 3 Days)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2000
Location: Orlando, FL
Posts: 921
Andrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond repute
Send a message via AIM to Andrew Rudolph
We add little things about poeple in the team as notes in the program, like : Turn on tonys hair (its spikey) or Make the Robot RAN forward (ran is a kid on our team) so on and so forth. One time last year we got so bored we drew a drawing of one of our programmers (he has a big nappy fro)
good times good times



Andrew
  #8   Spotlight this post!  
Unread 13-05-2002, 19:14
Andy A. Andy A. is offline
Getting old
FRC #0095
Team Role: Coach
 
Join Date: Jun 2001
Rookie Year: 2001
Location: New Hampshire
Posts: 1,015
Andy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond repute
I'm not a programmer by anymeans, but on occasion when our programmer leaves the code up I'll add in comments in odd places. Some time's he notices them, other times he doesn't.

Lets just say he doesn't like people messing with his programs...

-Andy A.
  #9   Spotlight this post!  
Unread 13-05-2002, 19:23
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
We didn't really do anything code-wise, but we had some fun controller-wise.

Our robot has a dual drive system - basically we're on wheels by default, and when we flick a switch, two cylindars push down on a tread system. When this happens, the robot is lifted up off the wheels and onto the treads. The overall effect is that the robot chasis looks like its bouncing. So, because our robot needed a bit more ghetto in it, I labeled that switch on the oi the "Hydros"

Then theres the fun with fortune cookies. I don't know how this started, but we began taping random fortune cookies (the fortunes, silly) onto the oi and onto the robot. Like in front of the joysticks, it says something to the effect of "Be calm and relaxed when facing an emergency." On the front panel of our robot, it says something to the effect of "Be kind and gentle towards others." Now, this becomes quite funny when you actually see our front panel... also notice the chipped Lexan on the right, along with the paintjob that used to be perfect. Needless to say, our bot is VERY kind and gentle towards others
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #10   Spotlight this post!  
Unread 13-05-2002, 20:07
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
lol, but dan, you forgot something....

since i was bored when i wrote the code, some it went to "spagghetti code". little labels like 'Yay:' and 'SpinningLightThingyOn:'. needless to say, Dan had a bit of trouble understanding the code, so he went through and redid parts . although, i thin you can find some labels that have no relation to anything thrown in the code in a few spots. it's fun to do, especially when i get to instruct the new programmers next year...
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #11   Spotlight this post!  
Unread 13-05-2002, 20:35
DanL DanL is offline
Crusty Mentor
FRC #0097
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: Somerville, MA
Posts: 682
DanL is just really niceDanL is just really niceDanL is just really niceDanL is just really niceDanL is just really nice
Send a message via AIM to DanL
Oh yeah, forgot about that part. I guess it's because I tried to BLOCK IT OUT after I went back and redid the code so that IT WASN'T SO <insert explicative here> DIRTY!! I'm wondering, though, should we give the dirty code to the programmers next year just to be funny? Or should we give them the cleaned up and commented version? Or, just to add some more excitement, how about we give 'em the dirty code with a few 255's thrown in for an added bonus?
__________________
Dan L
Team 97 Mentor
Software Engineer, Vecna Technologies
  #12   Spotlight this post!  
Unread 14-05-2002, 16:06
Ameya's Avatar
Ameya Ameya is offline
Freelance Goon
FRC #0293 (SPIKE Robotics)
Team Role: Alumni
 
Join Date: May 2001
Rookie Year: 2000
Location: Pennington, NJ
Posts: 67
Ameya is on a distinguished road
Send a message via ICQ to Ameya Send a message via AIM to Ameya
Last year, we had a failed experiment with an active steering system. Instead of deleting the code, we just commented it out. This year, we began programming the robot using last year's code as a base. To clean up the code, I removed the commented out code and added a little gravestone

Also, in the last week I made a program that would use the optical sensor to find the center of the goal so that the robot could automatically grab it with our sickle. However, due to time constraints and the fact that no one wanted to add the (small) extra weight of the sensor, it was never used (or even tested!). But, being proud of the untested work, I kept it in the code, commented, with a little ascii I.V. fluid package keeping it alive.
__________________
Ameya Agaskar
Team 293 alumnus

Last edited by Ameya : 14-05-2002 at 16:10.
  #13   Spotlight this post!  
Unread 14-05-2002, 16:51
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
dan, why do you think i made a dirty code? how else will htey ever learn?
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #14   Spotlight this post!  
Unread 22-05-2002, 15:23
VanWEric VanWEric is offline
Registered User
#0250 (Dynamos)
 
Join Date: Feb 2002
Location: NY
Posts: 86
VanWEric is an unknown quantity at this point
raise a lil hell with rotel

forget about giving the newbs spaghetti code -- give them super clean hyper optimized code. pull out your math skillz and reduce every function to a single line. that will get some good facial expressions.
  #15   Spotlight this post!  
Unread 22-05-2002, 16:18
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
LOL!! i guess we need to make two forms of the code, horrible and amazingly efficent. say this is what it was...this is what it is. good idea
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
Brochure Style Chairman's Award Archon Chairman's Award 1 17-02-2003 17:02
Letters (snail mail style) E. The Kidd Chit-Chat 11 09-08-2002 01:19
tank or go-cart style steering? archiver 2001 17 23-06-2002 22:42
WRAP PARTY - CHAT STYLE archiver 2000 0 23-06-2002 22:42
POST YOUR RIG! [H]ard|OCP Style! Zeinin Chit-Chat 5 06-02-2002 00:39


All times are GMT -5. The time now is 06:36.

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