![]() |
NEW TO PYTHON
New programmer to python... Looking for tips, instructions on how to program for FRC, and anything else I need! Thanks
Steagles 5215 |
Re: NEW TO PYTHON
Welcome. You have made a great choice in switching to python.
http://robotpy.readthedocs.org/en/la...ide/index.html This is documentation for wpilib, python style. Most of what you are looking for is in here. For choosing a 'method' of robot programming, iterative is pretty straightforward, and if you are up to it go with sample robot. Stay away from command though. If you have any more questions, just ask. Robotpy (the libraries for FRC python) has a freenode channel, http://webchat.freenode.net/ #robotpy and 1418 programmers are generally on, and we're always glad to help. |
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Now i'm curious, did you see my team's display about python at the Great Lakes Bay Reigon Competition?
If you have never programmed in python before, you might want to start by learning the basics of the language before diving into programming FRC robots. I have found that codeacademy.com has a pretty good primer for learning basic python. |
Re: NEW TO PYTHON
Dustin Spicuzza (virtualD) has also created a python learning package called pybasictraining. You can find it in Team 1418's github, https://github.com/frc1418/pybasictraining.
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
Python in FRC has a simulator that you can use to test the programs out that you create, and there's a number of examples available to look at: |
Re: NEW TO PYTHON
Command based is made for more object orientedness. If you really want to do those the simplest way would be to use java/c++. Stick to iterative though because you seem many teams trying to do their own stuff in simple and it ends up not being simple. Python is still a great language for frc and i hope to see it more developed.
|
Re: NEW TO PYTHON
This year we used Java and command based. For the most part we love how command based allows us to have the appearance of doing multiple things at the same time. A couple of the student members have got a pretty good handle on how to write command based code.
As the programming mentor I find java to be very verbose. We find eclipse to be very cumbersome and heavy. I severely miss the days of netbeans. We were thinking about trying python with JetBrains pyCharm. @x86_4819 Quote:
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
Code:
python robot.py --sim |
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Quote:
It's a resource hog, therefore it places a heavy load on its host, so it makes the world seem like gravity is exceeding 1G At work, we can pile more Emacs users on a VNC server than Eclipse users. |
Re: NEW TO PYTHON
For python you should not use eclipse and probably use some other ide. It is a resource hog but if you have a computer made in the last 3-4 years your should be able to use it. Don't use a classmate to run eclipse and you should be fine.
|
Re: NEW TO PYTHON
Quote:
|
Re: NEW TO PYTHON
Is the free community version of PyCharm sufficient for FRC purposes?
|
Re: NEW TO PYTHON
Yes but you should definitely use eclipse so you can make use of the pyfrc plugins
|
Re: NEW TO PYTHON
Correct me if I'm wrong, but the only thing that the plugins do for you is give you nice pre-configured buttons to launch your code with the various runtime options (run, deploy, sim, etc) -- which you can easily setup run configurations to do this in PyCharm. I have found PyCharm Community edition to work very well, and have used it exclusively over the past FRC season.
|
Re: NEW TO PYTHON
Quote:
|
| All times are GMT -5. The time now is 00:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi