We are running our code in 2020 sim and receiving fatal exception error. The sim dies when it runs a command group and says:
Windows fatal exception: access violation
We are speculating it could be due to a change in the 2020 command package. We used requires(Subsystem) and are wondering if this could be the cause of it failing.
The error in the console of the robot when trying to upload the code is
File ‘path to the file on the rio/commands/do_winch.py’, line 13 in init
Line 13 in do_winch reads
self.requires(robot.winch)
I have a feeling the way to use self.requires has changed since the super().init() is not used for 2020 wpilib commands but I don’t know how to use it correctly anymore
We tried to put Command.init(self) in commands and tried to put super().init_() in subsystems which didn’t work in the sim. So, we removed superinit from subsystems but this still didn’t run in the sim.