Go to Post I used to wonder if the FRC staff would read the CD game hint posts and just laugh to themselves..now I know they do. - rachelholladay [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
  #16   Spotlight this post!  
Unread 24-10-2010, 19:04
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: Announcing FIRSTLua

triple-posing aside, I got it to compile.

I had to put a pyconfig.h file in EVERY folder in the Python subdir, please update this on your git tree

Last edited by Robototes2412 : 24-10-2010 at 19:16. Reason: not .py, .h
  #17   Spotlight this post!  
Unread 24-10-2010, 19:20
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Announcing FIRSTLua

Quote:
Originally Posted by Robototes2412 View Post
triple-posing aside, I got it to compile.

I had to put a pyconfig.h file in EVERY folder in the Python subdir, please update this on your git tree
Of you could just add the include dir in your make process. "-I"
  #18   Spotlight this post!  
Unread 24-10-2010, 20:59
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: Announcing FIRSTLua

when compiling it on linux, you can't edit the makefile or BAD THINGS HAPPEN
  #19   Spotlight this post!  
Unread 24-10-2010, 22:02
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Announcing FIRSTLua

Quote:
Originally Posted by Robototes2412 View Post
when compiling it on linux, you can't edit the makefile or BAD THINGS HAPPEN
You can easily modify the makefile. It just takes a little care and understanding what the commands do. Adding the -I flag has worked for me before, and is probably used in the makefile already to include the WPILib headers.
  #20   Spotlight this post!  
Unread 24-10-2010, 23:06
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 268
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Announcing FIRSTLua

What may have happened is originally the git repo included a PPC603gnu/Makefile; this generated file pointed to specific paths on my machine and is not regenerated by default. I've since removed it from the repo so now WindRiver should generate it for you with the correct include paths.

In other news, I'm now running robot teleop code in Python. I need to make a couple of release .zip's so people don't have to build it from scratch, then I'll create a new Chief Delphi thread with a formal announcement.

I also added a new branch to the repo for those using CAN bus. Unfortunately the CAN bus version needs some symbols that are only available when the CAN bus driver is installed on the robot, so I have to have two separate releases.
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
  #21   Spotlight this post!  
Unread 24-10-2010, 23:22
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: Announcing FIRSTLua

Quote:
Originally Posted by Peter Johnson View Post
I also added a new branch to the repo for those using CAN bus. Unfortunately the CAN bus version needs some symbols that are only available when the CAN bus driver is installed on the robot, so I have to have two separate releases.
Are you sure about that? I thought the CAN drivers didn't provide the public symbols and the ones that are called by user code come from the NetworkCommunication library (for security reasons).
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
  #22   Spotlight this post!  
Unread 24-10-2010, 23:29
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 268
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Announcing FIRSTLua

Quote:
Originally Posted by Radical Pi View Post
Are you sure about that? I thought the CAN drivers didn't provide the public symbols and the ones that are called by user code come from the NetworkCommunication library (for security reasons).
Hmm, you might be right, as the external symbols just seem to be FRC_NetworkCommunication_JaguarCANDriver_sendMessa ge/receiveMessage. I just didn't have a cRIO without CAN configured to test on today, so wasn't sure. If someone could test it to confirm, I'll merge the branch into master. If someone else doesn't get to it first, I'll test it myself on Wednesday (when I have access to the robot again). Thanks!
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
  #23   Spotlight this post!  
Unread 26-10-2010, 23:24
zombiezen's Avatar
zombiezen zombiezen is offline
Registered User
AKA: Ross Light
FRC #0973 (Greyhound Robotics)
Team Role: College Student
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Atascadero
Posts: 12
zombiezen is a jewel in the roughzombiezen is a jewel in the roughzombiezen is a jewel in the roughzombiezen is a jewel in the rough
Re: Announcing FIRSTLua

Quote:
Originally Posted by Peter Johnson View Post
On another note: you may want to rename your project to not use the FIRST name. FIRST recently became more sensitive about such things as they've trademarked the "FIRST" name and thus have to protect it from dilution. I named my Python port "RobotPy" for this reason; you might want to rename yours to "RobotLua" or something similar.
Good point. Renamed everything to "Greyhound Lua". Updating links shortly.

EDIT: Darn, guess I can't update the main links. Here are the new ones:

Project Page:
http://redmine.zombiezen.com/projects/greyhoundlua

README:
http://redmine.zombiezen.com/project...try/README.txt

Download:
http://redmine.zombiezen.com/project...houndlua/files
__________________
Cheers,
Ross Light

http://www.zombiezen.com/

Last edited by zombiezen : 26-10-2010 at 23:27. Reason: Fix text
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
Announcing Project Falafel/FLFL RandomStyuff General Forum 0 28-08-2010 07:53
Announcing of Penalties ShaniL Rules/Strategy 3 16-03-2009 21:27
Announcing penalties GaryVoshol General Forum 8 11-03-2008 16:47
Announcing BattleCry@WPI 8! WernerNYK Off-Season Events 90 28-08-2007 13:03
Announcing Brunswick Eruption V3.0 Mike Schroeder Off-Season Events 2 26-05-2004 23:12


All times are GMT -5. The time now is 03:47.

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