I am currently implementing a sort of “autopilot” for my Bebop 2 drone.
I.e. I use a smartphone app as extension of the skycontroller 2.
When I engage the autopilot, I need to setController(controller) to give controls to the phone which computes the drone behavior (-> skycontroller inputs don’t work any more).
When I disengage it I need to setController(skycontroller) to get back manual control.
My problem is for now, I need to click on the engage/disengage button each time I want engage or disengage the autopilot. But for security reason I also want an automatic disengage when I give manual axis inputs with the skycontroller 2. Is it possible to intercept the skycontroller axis inputs even when skycontroller is disabled by setController(controller) ?