Go to Post In the absence of a valid game hint, the natives in CD tend to get restless and resort to this sort of pun-ishment of one another. - David Brinza [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 31-05-2010, 19:07
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
H4x0rs needed

Hello,

I am currently in the pre-pre-pre-alpha-alpha stage of getting a working LOLCODE interpreter on a FRC Robot.

Could one of you please take a look at the attatched TGZ and see how hard it would be to hack in a basic WPI library?

It follows the LOLCODE 1.2 spec, but it has objects (bukkits) and less strict typing (if at all). I also added PWNZ OF (>) and OWNZ OF (<) to make programmin' a lot easier.

Thanks
  #2   Spotlight this post!  
Unread 31-05-2010, 19:13
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: H4x0rs needed

Weeird, my tgz was 0.0001 kb too big, lol
Attached Files
File Type: zip lolcode.zip (166.8 KB, 56 views)
  #3   Spotlight this post!  
Unread 31-05-2010, 19:24
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: H4x0rs needed

I find this pretty funny and find it an interesting project for FIRST. Subject was a bit misleading though.

Gotta love those cats. Will have to see how it runs later.

-Tanner
  #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.
  #5   Spotlight this post!  
Unread 31-05-2010, 20:56
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: H4x0rs needed

IDK, brain$@#$@#$@#$@# sounds like a better thing to try to interprete
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #6   Spotlight this post!  
Unread 31-05-2010, 20:58
pSYeNCe's Avatar
pSYeNCe pSYeNCe is offline
Programaster
AKA: James
FRC #2010 (Lightning Bots)
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2007
Location: Ohio
Posts: 58
pSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to beholdpSYeNCe is a splendid one to behold
Re: H4x0rs needed

Someone posted this in-season as a joke... hopefully if you are actually doing it you'll be met with success I'll program in that.
__________________
"Great minds discuss ideas; average minds discuss events; small minds discuss people."
-Eleanor Roosevelt

Last edited by pSYeNCe : 31-05-2010 at 21:00.
  #7   Spotlight this post!  
Unread 01-06-2010, 17:22
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: H4x0rs needed

I am as serious as the following text is bolded:
YA RLY

and the code would be at the LOLCODE 1.2 spec (with bukkits and P/OWNZ OF) ex:
Code:
O HAI IM ROBOT
 HOW DUZ I NERF YR BEERZ?
  FOUND YR DIFF OF BEERZ AN 1
 IF U SAY SO
KTHX

HAI 1.2
 CAN HAS STDIO?
 I HAS A FOOL ITZ LIEK A ROBOT
 
 FOOL!!NERF 2
 VISIBLE IT
KTHXBYE
I am working with the author of this lolcode parser (http://www.icanhaslolcode.org) to do this, and we kinda need a zip of the c/++ api (I programmed my team's robot in Java), so if you can provide that, please do .

Peace and Long Life
  #8   Spotlight this post!  
Unread 01-06-2010, 20:29
rahilm's Avatar
rahilm rahilm is offline
Registered User
AKA: Rahil Mehta
FRC #0668 (The Apes of Wrath)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2007
Location: San Jose, CA
Posts: 116
rahilm has a spectacular aura aboutrahilm has a spectacular aura about
Re: H4x0rs needed

Quote:
Originally Posted by Robototes2412 View Post
and we kinda need a zip of the c/++ api (I programmed my team's robot in Java), so if you can provide that, please do .
http://first.wpi.edu/Images/CMS/Firs...ce20100107.zip

From the WPILib website
__________________
Team 668 - Apes of Wrath - 2008-2011
Team 668 - Apes of Wrath - 2011-Present (Mentor)
  #9   Spotlight this post!  
Unread 02-06-2010, 01:11
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: H4x0rs needed

Thank you <3

Does anyone know how to fedangle GCC into outputting a VXWORKS binary?

How about STDIN on the cRIO?
  #10   Spotlight this post!  
Unread 02-06-2010, 20:37
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

Quote:
Originally Posted by Robototes2412 View Post
Thank you <3

Does anyone know how to fedangle GCC into outputting a VXWORKS binary?

How about STDIN on the cRIO?
The easiest way would be to just use Wind River to build it (it uses GCC also). That way you get the header files

And I believe fopen works on the cRIO if you include the right files
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #11   Spotlight this post!  
Unread 03-06-2010, 18:24
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: H4x0rs needed

I run Linux, Wind River does not.
  #12   Spotlight this post!  
Unread 03-06-2010, 21:07
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: H4x0rs needed

Quote:
Originally Posted by Robototes2412 View Post
I run Linux, Wind River does not.
But, wine+makefiles==(WindRiver-IDE)

The attached makefile & utils is from AustinSchuh:
Quote:
I have a couple scripts and patches that I've collected up that let me build WPILib and pull down the latest.

My makefile pulls down the latest WPILib (you need to point it to the latest version when that changes), patches it (I found a bug, and the makefile needs to get swapped out for it to build), pulls down the latest GCC compiler that is needed to compile for the cRIO, and then builds the code. So, once all the pieces are found and together, it works like a charm.

If I'm doing things right, and you have all the unlisted prerequisites, all you should have to do is type make in the MainRobot directory. And then wait. Make sure you have wput, ftp, and wine, to start with.

The paths might not seem to make the most sense now, but I'm pulling things from our repository and this is how things are set up.
Quote:
Type make to build the code

Type make deploy to deploy the code. You will have to edit the makefile to change all IP addresses from 10.9.71.2 to your team number.

And that's it. If you want to add more source files, add them on the line that goes something like MainRobot.o.

Once you are that far, you can start poking at it a bit more. It's definately not the most polished makefile in existence.
Attached Files
File Type: tgz gcc-linux-wpilib.tgz (4.6 KB, 84 views)
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
  #13   Spotlight this post!  
Unread 03-06-2010, 22:17
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: H4x0rs needed

It works
  #14   Spotlight this post!  
Unread 04-06-2010, 23:27
Robototes2412's Avatar
Robototes2412 Robototes2412 is offline
1 * 4 != 14
FRC #2412 (Robototes)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2007
Location: Bellevue
Posts: 312
Robototes2412 is on a distinguished road
Re: H4x0rs needed

I have a working version of this!

see the zip

deploy the code (warning, linux makefile) and copy MainRobot/lolcode/example.lol to tour robot's root at /robot.lol

you do have to extract the supplied zip of the wpi library, i had to mod it

oh, DONT USE GIMMEH, YOU WILL GET STUCK IN AN INFINITE LOOP
Attached Files
File Type: zip MainRobot.zip (928.1 KB, 29 views)

Last edited by Robototes2412 : 04-06-2010 at 23:39. Reason: forgot something
  #15   Spotlight this post!  
Unread 07-06-2010, 17:52
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is offline
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 589
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
Re: H4x0rs needed

You are amazing for doing that. It's kind of awesome.
What did you base the code on?
__________________


GSR Dean's List Finalist 2011
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
Help Needed. Mars FIRST Lego League 3 30-12-2007 14:03
Volunteers needed! KathieK FIRST Tech Challenge 0 01-11-2006 21:12
Help needed.... Pin Man General Forum 9 02-06-2003 20:40
videos needed archiver 1999 3 23-06-2002 22:09
VIDEO NEEDED archiver 2000 0 23-06-2002 22:07


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

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