Good day,
I am adding two DIO limit switches (named A & B) to DIO array currently consisting of one DIO limit switch (C).
A is on port 1, B is on port 2, and C is on port 3 of the RoboRIO onboard DIO.
C is outputting as expected using
DigitalInput C = new DigitalInput(3);
C.get();
However, setting up A & B the same way,
DigitalInput A = new DigitalInput(1);
DigitalInput B = new DigitalInput(2);
does not work as expected. The .get() values of A and B do not change, and instead activating any of the digital inputs only alters C (pressing down on A, B, or C exclusively activates C).
Has anyone experienced a similar issue, and if so, can you share how you fixed it?