Go to Post When a team is composed completely of robot builders and technical people that team cannot exist just like a company cannot exist if it is only made up of engineers. - Garret [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 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)
  #2   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 23:17.

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