View Single Post
  #5   Spotlight this post!  
Unread 06-01-2015, 14:21
Aero Aero is offline
consumes pizza, produces code
AKA: Ari Lotter
FRC #0865 (Warp7)
Team Role: Programmer
 
Join Date: May 2013
Rookie Year: 2013
Location: Toronto
Posts: 30
Aero is on a distinguished road
Exclamation Re: Initial release of RobotPy for 2015

Quote:
Originally Posted by virtuald View Post
Great to hear! Perhaps you'd be interested in posting some docs for others to use?
Of course! I haven't managed to reload code while the robot is enabled (that's pretty dangerous anyways), but I have automatic reloading for your source files post-upload.
I'm using my IDE (IntellJ IDEA)'s deployment function to upload the files over SCP on save.

Here's the script! It's pretty well-commented, so anyone should be able to figure it out & adapt it to their setup pretty quickly.

https://gist.github.com/aerobit/05c3bc5c71f60d52736e

Quote:
Originally Posted by virtuald View Post
How are you debugging? Via pdb, or remotely
I'm just using my IDE's remote debugger (again, PyCharm/IntelliJ IDEA).
Works perfectly!


One question; I'm trying to get the Encoder class working, but no matter if I pass it two DigitalChannels or two ints representing the channels, the constructor fails with a "TypeError: 'int' object is not iterable".
Here's the full error log.
https://gist.github.com/aerobit/37ad61b750b8e11b555e
Reply With Quote