Quote:
Originally Posted by Bot190
I'm pretty sure this code was NOT intended to be run on a robot, and is meant to be a simulation run on a computer.
|
Referring to the top of the file:
Code:
try:
import wpilib as wpi
except:
import testing as wpi
That import statement seems to refer to the wpilib that is available in the python interpreter ported to the cRio. So, it could theoretically be run on the robot, if the bugs were fixed. Might not be useful, but it could work.
Also refer to inputs.py, it has the same thing that switches the input device from a joystick to predetermined values.