Closed hell0w0rld2 closed 4 years ago
This PR fails in autonomous mode
File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\magicbot\magicrobot.py", line 371, in autonomous
self._automodes.run(
File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\robotpy_ext\autonomous\selector.py", line 271, in run
on_exception()
File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\robotpy_ext\autonomous\selector.py", line 269, in run
self._on_iteration(timer.get())
File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\robotpy_ext\autonomous\selector.py", line 337, in _on_iteration
self.active_mode.on_iteration(time_elapsed)
File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\magicbot\state_machine.py", line 649, in on_iteration
self.execute()
File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\magicbot\state_machine.py", line 610, in execute
state.run(self, tm, tm - state.start_time, initial_call)
File "
This PR fails in autonomous mode File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\magicbot\magicrobot.py", line 371, in autonomous self._automodes.run( File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\robotpy_ext\autonomous\selector.py", line 271, in run on_exception() File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\robotpy_ext\autonomous\selector.py", line 269, in run self._on_iteration(timer.get()) File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\robotpy_ext\autonomous\selector.py", line 337, in _on_iteration self.active_mode.on_iteration(time_elapsed) File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\magicbot\state_machine.py", line 649, in on_iteration self.execute() File "Y:\Users\chirsch\src\raptacon\Robot-2020\venv\lib\site-packages\magicbot\state_machine.py", line 610, in execute state.run(self, tm, tm - state.start_time, initial_call) File "", line 1, in File "Y:\Users\chirsch\src\raptacon\Robot-2020\autonomous\autonomous.py", line 35, in turn self.driveTrain.setup(-self.drive_speed, self.drive_speed) TypeError: setup() takes 1 positional argument but 3 were given
Actually it turns out that it was a problem in master.
Cuts driveMotorsMultiplier in half when left bumper is pressed on the drive controller.