Go to Post Thankfully, my student drivers are a lot smarter than me and covered for me on several occasions. - Paul Copioli [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2012, 20:21
Ben_Farmer's Avatar
Ben_Farmer Ben_Farmer is offline
FIRST Robotics Team 2945
AKA: Gilgion
FRC #2945 (Steel-Stangs)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Manitou Springs, CO
Posts: 6
Ben_Farmer is an unknown quantity at this point
Question Python Tips

Hey, so the FRC Robotics team that I am a part of is kinda split on the topic of which language to program our robots in, python or C++. I personally have read many reviews stating other teams fabulous success with python but still others have their doubts. I am currently programming python as a back-up to the C++ code but I think that it should become more. Any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 30-01-2012, 20:58
Djur's Avatar
Djur Djur is offline
WPILib
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Massachusetts
Posts: 182
Djur will become famous soon enough
Re: Python Tips

While Python is easier to program, it needs to be ported to C++ in order to work on VxWorks and this may cause some performance issues, specifically lag between an event and the program's ability to respond (this might not be a big problem; I've never had any experience with Python).

C++ is a bit more complex, but it seems you already have people who know the language, so that's not an issue. The real advantage to it is that it runs natively on VxWorks and therefore has the best performance out of the (currently) three languages available for programming: C++, Java, and Python.

Bottom line: C++ is a bit faster and more reliable than Python on the cRIO. Make your decision on C++ vs Python based on this and your programmers' abilities in both languages.
__________________
WPILib dev (RobotBuilder, SmartDashboard, GRIP)
Reply With Quote
  #3   Spotlight this post!  
Unread 30-01-2012, 21:09
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Python Tips

Quote:
The real advantage to it is that it runs natively on VxWorks and therefore has the best performance out of the (currently) three languages available for programming: C++, Java, and Python.
May I point out that LV also runs natively on VxWorks and is an official language for programming the cRIO.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2012, 19:20
Ben_Farmer's Avatar
Ben_Farmer Ben_Farmer is offline
FIRST Robotics Team 2945
AKA: Gilgion
FRC #2945 (Steel-Stangs)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Manitou Springs, CO
Posts: 6
Ben_Farmer is an unknown quantity at this point
Question Re: Python Tips

Quote:
Originally Posted by Djur View Post
The real advantage to it is that it runs natively on VxWorks and therefore has the best performance out of the (currently) three languages available for programming: C++, Java, and Python.
.
Are you sure that you can not use python with VxWorks? recently I have seen that they are compatible and that people are using it reliably you just need to port it differently.
Is this not the case?
__________________
- Ben Farmer
FIRST Robotics Team 2945
Reply With Quote
  #5   Spotlight this post!  
Unread 31-01-2012, 19:29
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,720
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Python Tips

Python, last I checked, is not officially supported in FRC. While there are teams who do it, the three languages that are officially supported are Java, Labview, and C++.

I'd go with C++ this year. That way, you have a pretty good chance of getting help if you make a serious mistake. Do Python as an offseason thing and see where it takes you.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
Reply


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


All times are GMT -5. The time now is 11:16.

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