Go to Post Life is more fun if you take some risks every so often. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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