![]() |
Team 1288 Initial Python Code release
1 Attachment(s)
This is the first year team 1288 is using python for our robot. Here is our initial code going into the competition.
We only scratched the surface of what we can do with python and hope to greatly improve our coding process in the years to come! |
Re: Team 1288 Initial Python Code release
First off, congrats. Python is a great language choice since it's so easy to use.
I went through your code because it is always fun to see how teams do stuff differently, and I noticed a few things. Code:
self.cameraFour = wpilib.USBCamera(b'cam3')Also, the code for gyro rotation seems awfully long. 1418 did this last year and the way we did it was Code:
angleOffset = target_angle - self.return_gyro_angle()Quote:
PS: Don't forget to add yourselves to the 2015 RobotPy Roll Call |
Re: Team 1288 Initial Python Code release
You guys aren't using github are you?
|
Re: Team 1288 Initial Python Code release
Good stuff! Glad to see more people making use of python :)
You might find that your autonomous state machines will be easier to create/read/adjust if you use the StatefulAutonomous stuff in robotpy-wpilib-utilities. |
| All times are GMT -5. The time now is 19:51. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi