robotdotnet / WPILib

DotNet implementation of WPILib for FIRST Robotics Competition (FRC)
27 stars 8 forks source link

Rewrite Solenoid #35

Closed ThadHouse closed 9 years ago

ThadHouse commented 9 years ago

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.