Currently the Solenoid class is VERY wasteful. Every solenoid created creates all 8 ports, and then to set them manually reads and sets all 8 ports. Its not slow, but its just odd, and very inefficient. I submitted a fix for this to the Java WPILib, but I think even if it doesn't get accepted it should be fixed here, because we don't want to be wasting that many resources.
Currently the Solenoid class is VERY wasteful. Every solenoid created creates all 8 ports, and then to set them manually reads and sets all 8 ports. Its not slow, but its just odd, and very inefficient. I submitted a fix for this to the Java WPILib, but I think even if it doesn't get accepted it should be fixed here, because we don't want to be wasting that many resources.