Go to Post Do you think it's important? Is it actually possible for the students to change the lives of the mentors? - Rich Kressly [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 03-01-2008, 03:10
hdanak hdanak is offline
Registered User
FRC #2584 (Reseda Regents Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: California
Posts: 13
hdanak is an unknown quantity at this point
Re: Programming in Python and Explaination of Programming

Does anyone have a cached version of the code (all or in part)? Thanks in advance.
  #17   Spotlight this post!  
Unread 03-01-2008, 05:12
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Programming in Python and Explaination of Programming

I have a copy of their code on my home machine. I am still at my parents on vacation right now but I'll be back at Purdue for kickoff and can get it to anyone who wants it.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
  #18   Spotlight this post!  
Unread 04-01-2008, 13:05
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Programming in Python and Explaination of Programming

Since their repository is down I've attached what I had on my computer. Please note I didn't write this and all credit goes to AdamBots. However since it is under the GPL, I am within my rights to redistribute the code.
Attached Files
File Type: zip acs-frc2007.zip (1.22 MB, 74 views)
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
  #19   Spotlight this post!  
Unread 04-01-2008, 21:50
hdanak hdanak is offline
Registered User
FRC #2584 (Reseda Regents Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: California
Posts: 13
hdanak is an unknown quantity at this point
Re: Programming in Python and Explaination of Programming

Thanks a lot for the code.
  #20   Spotlight this post!  
Unread 04-01-2008, 22:39
roboxking roboxking is offline
Registered User
AKA: Chris
FRC #2584 (Reseda Regent Robotics)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2006
Location: Encino
Posts: 4
roboxking is an unknown quantity at this point
Re: Programming in Python and Explaination of Programming

Yes, we at Team 2584 thank you!
  #21   Spotlight this post!  
Unread 07-01-2008, 00:05
techwizrd techwizrd is offline
Autonomous Programmer
FRC #0116 (Epsilon Delta)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Herndon, Virginia
Posts: 7
techwizrd is an unknown quantity at this point
Send a message via AIM to techwizrd
Lightbulb Re: Programming in Python and Explaination of Programming

Quote:
Originally Posted by roboxking View Post
Our team has decided to use Python for programming, instead of C. Does anyone know how to do that. I also need a general explanation of how programming works in general. This is our first year in FRC, and in FVC (now FTC) all we did was use EasyC, so how programming worked wasn't an issue. Thanks for the help anyone can give me.
Sadly, our team wants to use C too. I personally suggest, being an experienced Python programmer (whatever that's worth ), using CPython to write the code. You can import the header files and write the code with Python syntax. If I am correct, you'll get nice compiled code at the end, that theoretically should work. I personally am not very experienced with CPython, as I do not normally need to write C-like code with toolkits like PyGTK out.
  #22   Spotlight this post!  
Unread 07-01-2008, 08:14
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Programming in Python and Explaination of Programming

Quote:
Originally Posted by techwizrd View Post
Sadly, our team wants to use C too. I personally suggest, being an experienced Python programmer (whatever that's worth ), using CPython to write the code. You can import the header files and write the code with Python syntax. If I am correct, you'll get nice compiled code at the end, that theoretically should work. I personally am not very experienced with CPython, as I do not normally need to write C-like code with toolkits like PyGTK out.
CPython is just the name of the standard Python interpreter (Just as JPython is the interpreter written in Java). It does not mean you can produce C code from your Python code.
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
  #23   Spotlight this post!  
Unread 07-01-2008, 16:08
hdanak hdanak is offline
Registered User
FRC #2584 (Reseda Regents Robotics)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: California
Posts: 13
hdanak is an unknown quantity at this point
Re: Programming in Python and Explaination of Programming

Quote:
Originally Posted by techwizrd View Post
Sadly, our team wants to use C too. I personally suggest, being an experienced Python programmer (whatever that's worth ), using CPython to write the code. You can import the header files and write the code with Python syntax. If I am correct, you'll get nice compiled code at the end, that theoretically should work. I personally am not very experienced with CPython, as I do not normally need to write C-like code with toolkits like PyGTK out.
I think that you are referring to Pyrex or Psyco. But remember, when your talking about compiled code, you mean compiled for a PC. Writing C on the PICmicro is not the same C in comparison to that used on a pc (different compiler, different libraries). Something written for a PC won't just run on a PIC.

However, I did find this Python to PIC assembly translator : http://pyastra.sourceforge.net/
It should run closer to native speed than an interpreter, but its not all that efficient, even if it doesn't use an interpreter.

By the way, we have decided on using microchip C for our robot, mostly because this year's competition is basically an RC race (even in Autonomous --hybrid-- mode), and partly because we weren't sure enough to allocate sufficient funds (including time) for buying/testing a coprocessor.

EDIT: heres a useful link: http://www.piclist.com/techref/microchip/languages.htm

Last edited by hdanak : 07-01-2008 at 16:14.
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
problems programming knob and switch caderader Programming 4 16-02-2006 16:45
programming motors with programming kit BorisTheBlade FIRST Tech Challenge 4 01-11-2005 19:03
'Fix It Window' and Programming.... JMac Programming 19 25-01-2005 18:57
Problems and questions about programming hedgehogger Programming 4 15-01-2005 18:18
Programming and Electronics — Getting Started Sidney San Martín Technical Discussion 7 12-01-2005 15:25


All times are GMT -5. The time now is 00:53.

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