mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Implemented FRCSim artf2628, fixed bugs in non-sim Relay.java and sim PWM.cpp.
Change-Id: Ic00fcd5026ce0570c79a65be178e45eeb94b3deb
This commit is contained in:
committed by
Alex Henning
parent
461e359484
commit
dc48dc7f7b
@@ -299,7 +299,7 @@ public class Relay extends SensorBase implements IDeviceController,
|
||||
}
|
||||
} else {
|
||||
if (RelayJNI.getRelayReverse(m_port, status.asIntBuffer()) != 0) {
|
||||
if (m_direction == Direction.kForward) {
|
||||
if (m_direction == Direction.kReverse) {
|
||||
return Value.kOn;
|
||||
} else {
|
||||
return Value.kReverse;
|
||||
|
||||
Reference in New Issue
Block a user