Hello,
I noticed that @auscompgeek updated the Stateful Autonomous example (Thank you for that). I am trying it out, but am running into some errors.
I cannot call drive code. When I try, I get
File "C:\Users\l*\Documents\Robotics\RobotPy\examples\stateful-autonomous\autonomous\drive_backwards.py", line 16, in drive_wait
self.drive.tankDrive(0, 0)
'DriveBackwards' [or DriveForwards] object has no attribute 'drive'
I am using the examples as is. I tried adding the following as suggested in the tutorial… from robotpy_ext.autonomous.selector_tests import *
…but that fails. with
Traceback (most recent call last):
File "robot.py", line 7, in <module>
from robotpy_ext.autonomous.selector_tests import *
File "C:\Users\*\AppData\Local\Programs\Python\Python38\lib\site-packages\robotpy_ext\autonomous\selector_tests.py", line 6, in <module>
_gsms = pyfrc.config.config_obj["pyfrc"]["game_specific_messages"]
KeyError: 'pyfrc'
I am wondering what I am missing (I am using the simulator).
Thank you.
~Mr. R^2