Thread: H4x0rs needed
View Single Post
  #4   Spotlight this post!  
Unread 31-05-2010, 20:56
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: H4x0rs needed

Well so far it has all of the LOLCODE spec. From this point on I would leave those files alone and make use of the I CAN HAZ command. Example:
Code:
I CAN HAZ WPILIB 2010
That would activate an extension (hooks onto the bottom of the main parser function) which parses for commands that you created. Then you can keep legacy support for changes to WPILib.

Here's the kind of thing I see in the WPILib extension:
Code:
HOW DUZ CONSTRUCT
I SEE THAT JAGUAR ON PORT <port>
I SEE THAT ENCODER ON PORT <port>
I SEE THAT COMPRESSOR ON PORTS <spike port> AND <switch port>
I SEE THAT JOYSTICK ON PORT <port>
IF U SAY SO
HOW DUZ TELEOP
JAGUAR <port> GO <some NUMBAR value>
ENCODER <port> GIMMEH <input variable>
JOYSTICK <port> GIMMEH <input variable>
IF U SAY SO
And so on.
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"

Last edited by Radical Pi : 31-05-2010 at 21:00.