Invalid access when `use_joystick` is set to False
In function C9Controller.disconnect()
, the following line
https://gitlab.com/north-robotics/north_c9/-/blob/master/north_c9/controller.py#L259
checks if self.joystick.running
holds. However, this statement fails if C9Controller
is initialized with use_joystick = False
, because self.joystick
is not defined in this case.