Quote:
Originally Posted by Jared
I think there's a bug in the solenoid.java file of FakeWPILib
Code:
public Solenoid(final int moduleNumber, final int channel) {
m_channel = channel;
initSolenoid((moduleNumber * 7) + channel);
}
Module 0, channel 7 will have an index of 7 as expected, but module 1, channel 0 will also have an index of 7. It should be moduleNumber*8 + channel, not 7.
|
Yeah, this is a bug that didn't happen to affect our particular port layout. Good catch.