|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
RobotPy 2011.1
I'm happy to announce the first version of RobotPy (Python for FRC) for the 2011 season, 2011.1.
http://firstforge.wpi.edu/sf/projects/robotpy Major changes from 2010.beta2 release:
Thanks to Austin Schuh and Dustin Spicuzza for their testing, bug reports, and patches! Per discussion in other threads, expect another release by next weekend to change restart functionality to be a bit more user-friendly, and possibly the inclusion of winpdb for debugging. |
|
#2
|
|||
|
|||
|
Re: RobotPy 2011.1
Cool.
Quote:
What did that change? |
|
#3
|
|||
|
|||
|
Re: RobotPy 2011.1
Quote:
Changing to SIP makes it possible to create derived classes from all WPILib classes. Also, static functions are now part of their class (ClassName.StaticName()) instead of being renamed to ClassName_StaticName(). I need to update the wiki to reflect this. |
|
#4
|
|||
|
|||
|
Re: RobotPy 2011.1
Great! That addition will be a huge help in convincing my team that we won't lose much by switching to Python.
|
|
#5
|
||||
|
||||
|
Re: RobotPy 2011.1
It seems that RobotPy 2011.1 doesn't have the Victor class any more, though it is in the 2011 WPILib. Can we still use it?
|
|
#6
|
||||
|
||||
|
Re: RobotPy 2011.1
yes, its just in the _wpilib.out file
Good job on this, i'm gonna hack in basic camera stuff |
|
#7
|
|||
|
|||
|
Re: RobotPy 2011.1
Oops that's a bug! I'll fix it in git tonight and it'll be fixed in the 2011.2 release.
|
|
#8
|
|||
|
|||
|
Re: RobotPy 2011.1
This looks awesome! Any chance of using the python naming conventions (snake-case methods)? If not, I can create a wrapper for the classes I use.
Great work, I'll definitely help out with testing. |
|
#9
|
||||
|
||||
|
Re: RobotPy 2011.1
Great! Can't wait to test it.
|
|
#10
|
||||
|
||||
|
Re: RobotPy 2011.1
I tried to make a wrapper class for _wpilib.Victor, but was unsuccessful. I guess I did something wrong.
|
|
#11
|
|||
|
|||
|
Re: RobotPy 2011.1
When I first wrappered the C++ classes, the easiest approach was to keep the C++ naming. Plus it means you can pretty easily use the C++ WPILib reference to find out function names. It's relatively straightforward to annotate the .sip files to rename each function to PEP 8's lower_case convention, but I do not plan on doing so for 2011 as it would break everyone's code who already started using 2011.1. I will consider renaming to follow Python naming conventions for 2012 if there's sufficient community desire to do so.
|
|
#12
|
|||
|
|||
|
Re: RobotPy 2011.1
The Python wrapper class was accidentally not compiled into _wpilib.out, so it's impossible to get access to it from Python. I'm going to try to get the new release out tomorrow night.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|