I have encountered the dreaded “Resource Already allocated” error when working with Analog ports.
Sometimes an object gets created again when you don’t expect it or whatever.
Is there any way to force reallocate an analog port on the fly?
I’m using a RobotContainer so if I want to recreate it in Robot.java I get the error. If I create a new Analog(0) I want it to override it even if it happened before. Does that make sense?
I’ve done some searching but have not found anything specific.
Thanks,
Petrie