ads-xbox-controller icon indicating copy to clipboard operation
ads-xbox-controller copied to clipboard

Add a watchdog to detect loss of connection

Open benhar-dev opened this issue 4 years ago • 0 comments

The current PLC code does not receive any information about the status of the xbox controller or Python application. If the controller were to be disconnected then the joystick and buttons would retain their last known values. This may not be ideal for your control code.

It would be best to implement a watchdog / cyclic toggle which reports the state of the xbox controller in the same way as EtherCAT reports WcState and InputToggle. This would allow you to take action on the last know values in a way which best suits the application.

benhar-dev avatar Oct 26 '21 06:10 benhar-dev