|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#31
|
||||
|
||||
|
Re: RobotPy 2010.beta2
Quote:
http://pastebin.com/9bcUEy96 |
|
#32
|
||||
|
||||
|
Re: RobotPy 2010.beta2
Quote:
http://pastebin.com/9bcUEy96 |
|
#33
|
||||
|
||||
|
Re: RobotPy 2010.beta2
Quote:
Quote:
Quote:
Quote:
Last edited by Slix : 10-01-2011 at 03:27. Reason: Added url |
|
#34
|
||||
|
||||
|
Re: RobotPy 2010.beta2
Quote:
|
|
#35
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
If so, that could work! Something like this (if done away from user code in boot.py) http://pastebin.com/iqZjYni0 Though, that requires that the user have a CheckRestart function. EDIT: Also need a wait in that snippet in the loop so that it doesn't take up all the cpu. Last edited by Slix : 10-01-2011 at 04:19. Reason: Edit |
|
#36
|
||||
|
||||
|
Re: RobotPy 2010.beta2
What about instead of a joystick press, just listen on a socket for some string? It's easy enough to write a script to connect to that socket and send it.
|
|
#37
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
Note that the latest code (I don't recall if 2010.beta2 did this, but it's in the current repo) implements the 5 second restart loop entirely in Python (in boot.py). If boot.py exits the C++ level terminates as well. So it's easy enough to customize the restart behavior however you like. |
|
#38
|
|||
|
|||
|
Re: RobotPy 2010.beta2
Quote:
-Joe |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| RobotPy: Python for FRC | Peter Johnson | Python | 28 | 17-10-2012 11:46 |
| [FTC]: FTC 2010-2010 "A New Game" | JohnFogarty | FIRST Tech Challenge | 2 | 21-08-2010 22:34 |
| Connect a Million Minds 2010 Robotics Invitational, June 26, 2010 Columbus, Ohio | Dr. Osemwengie | Off-Season Events | 29 | 03-07-2010 00:33 |
| 2010 accelerometer | chsr | C/C++ | 1 | 22-01-2010 02:28 |