Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Python (http://www.chiefdelphi.com/forums/forumdisplay.php?f=187)
-   -   how can i program the robot with python (http://www.chiefdelphi.com/forums/showthread.php?t=153755)

Noam 16-01-2017 12:45

how can i program the robot with python
 
Hello I noticed today that it's possible to program the robot with Python, (so I don't know much about it) - How can I do it ? I didn't find instructions for how to install and using it.
And is it recommended ? Is it stable ?

Thanks in advance

TimTheGreat 16-01-2017 13:08

Re: how can i program the robot with python
 
Welcome to Python!

To get started with python, you probably want to know some basic python. Codecademy has a good intro that should be able to get you started.

Here are the instructions for everything robotpy.

In terms of being recommended, it depends who you ask. I would say go for it! If you don't like it you can go back to one of the official supported languages, although it's on par with them.

Stable...hmmm.....sure :p . It's pretty reliable. Thing were a bit shaky around kickoff but as of right now it should be smooth sailing. And if you ever run into issues, feel free to ask here, or on the robotpy gitter. It's a pretty active community and you'll get a response quickly (probably faster than CD).

Noam 16-01-2017 14:22

Re: how can i program the robot with python
 
oh I didn't explain myself good.. :ahh:
I'm already know Python, and I meant that I don't know how to install and use it on the robot.. I just know that there is a library called robotpy, but I don't know anything about how to install or using it.. so thats what I meant to ask :p

Noam 16-01-2017 14:28

Re: how can i program the robot with python
 
opss never mind.. I missed the link to the instructors.. sorry p:
and sorry about the double-comment, I'm new here and I don't know how (and if it's possible) to edit / delete my comments..

CloakAndDagger 19-01-2017 09:00

Re: how can i program the robot with python
 
As of last year Python was not officially supported by FIRST, which means that if your code errors out or you cant run at a FIRST event they will carry on without you and you can't count on support from FTAs and other volunteers.

If you decide to go on with python, most of the documentation you need will be in the WPILIB API.

We ran into some problems with the ctreCANTalon libraries so if you run into trouble with those let me know

virtuald 19-01-2017 09:32

Re: how can i program the robot with python
 
Quote:

Originally Posted by CloakAndDagger (Post 1633387)
As of last year Python was not officially supported by FIRST, which means that if your code errors out or you cant run at a FIRST event they will carry on without you and you can't count on support from FTAs and other volunteers.

If you decide to go on with python, most of the documentation you need will be in the WPILIB API.

We ran into some problems with the ctreCANTalon libraries so if you run into trouble with those let me know

What issues did you have with the CTRE libraries?

CloakAndDagger 19-01-2017 09:54

Re: how can i program the robot with python
 
Quote:

Originally Posted by virtuald (Post 1633398)
What issues did you have with the CTRE libraries?


We just had trouble understanding how to implement it. We originally tried to just import it into our code, but because it is a separate library we just had to ssh into the rio to install it.

I basically didn't do my reading and assumed I'd just be able to import it because I figured it would automatically be downloaded with robotpy


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi