Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Announcing FIRSTLua (http://www.chiefdelphi.com/forums/showthread.php?t=87185)

Robototes2412 24-10-2010 19:04

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

jhersh 24-10-2010 19:20

Re: Announcing FIRSTLua
 
Quote:

Originally Posted by Robototes2412 (Post 978239)
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"

Robototes2412 24-10-2010 20:59

Re: Announcing FIRSTLua
 
when compiling it on linux, you can't edit the makefile or BAD THINGS HAPPEN

AustinSchuh 24-10-2010 22:02

Re: Announcing FIRSTLua
 
Quote:

Originally Posted by Robototes2412 (Post 978262)
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.

Peter Johnson 24-10-2010 23:06

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.

Radical Pi 24-10-2010 23:22

Re: Announcing FIRSTLua
 
Quote:

Originally Posted by Peter Johnson (Post 978279)
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).

Peter Johnson 24-10-2010 23:29

Re: Announcing FIRSTLua
 
Quote:

Originally Posted by Radical Pi (Post 978280)
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!

zombiezen 26-10-2010 23:24

Re: Announcing FIRSTLua
 
Quote:

Originally Posted by Peter Johnson (Post 978175)
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


All times are GMT -5. The time now is 09:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi