A global boolean for the killswitch needs to be implemented so that the robot can be turned on and off reliably. The easiest way to implement this would be to have the arduino read the switch and every time its pushed to flip a boolean that gets read by the Jetson and lets all active programs know that they need to stop.
A global boolean for the killswitch needs to be implemented so that the robot can be turned on and off reliably. The easiest way to implement this would be to have the arduino read the switch and every time its pushed to flip a boolean that gets read by the Jetson and lets all active programs know that they need to stop.