In python, the use of an InterruptableSensorBase inherited by a class containing a limit switch raises a " Not Implemented" error. Is there any equivalent to use of InterruptableSensorBase (which should be spelled Interruptible) that would run a command when the limit switch is hit/interrupted?
If you are subclassing
InterruptableSensorBase, you must also implement
getPortHandleForRouting() (similarly to Java).
Just glancing at the source code for those functions, it seems they are also Not Implemented. https://robotpy.readthedocs.io/projects/wpilib/en/stable/_modules/wpilib/interruptablesensorbase.html#InterruptableSensorBase.getAnalogTriggerTypeForRouting
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.