Quote:
Originally Posted by virtuald
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.
|
That's exactly what I was just thinking this morning as well. A little program runs on your PC with a button for "Code Reload".
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.
__________________
Author of
cscore - WPILib CameraServer for 2017+
Author of
ntcore - WPILib NetworkTables for 2016+
Creator of
RobotPy - Python for FRC
2010 FRC World Champions (
294, 67, 177)
2007 FTC World Champions (30, 74,
23)
2001 FRC National Champions (71,
294, 125, 365, 279)