View Single Post
  #1   Spotlight this post!  
Unread 09-04-2011, 15:33
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,040
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
How did using python work for your team?

Our team just got done at the Boston Regional this week, and we used python to make our bot go. Our team usually releases its code every year, so I'll probably post it later on this week.

I thought using python was a really positive thing for our team. Some positives:
  • Really easy to teach to students, and I felt they picked it up faster than they would have picked up C++ or Java
  • It was very easy to create a simple test harness to run our code through to help us identify bugs, and it didn't require a ton of code to do it either
  • Python is really expressive, and I think it made some aspects of our software design a lot easier
  • Prototyping something (and testing it) was really fast, and helped us build things that worked a lot faster

Some negatives:
  • If you fat-finger something, it's possible that the robot code would throw an exception in the middle of a match (however, this was largely mitigated by having a comprehensive test program that we ran each time before we uploaded code to the robot)
  • I never got around to removing the pyc file generation for our code, but I felt there were some instances where if I didn't delete the pyc files, then the robot would just execute the code cached there instead of using code that was just uploaded to the robot

I'm curious to see who else used it for competition this year. What successes/failures did using python bring you?
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote