mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[sim] Add DoubleSolenoidSim and SolenoidSim classes (#3177)
This commit is contained in:
@@ -148,6 +148,14 @@ void DoubleSolenoid::Toggle() {
|
||||
}
|
||||
}
|
||||
|
||||
int DoubleSolenoid::GetFwdChannel() const {
|
||||
return m_forwardChannel;
|
||||
}
|
||||
|
||||
int DoubleSolenoid::GetRevChannel() const {
|
||||
return m_reverseChannel;
|
||||
}
|
||||
|
||||
bool DoubleSolenoid::IsFwdSolenoidBlackListed() const {
|
||||
int blackList = GetPCMSolenoidBlackList(m_moduleNumber);
|
||||
return (blackList & m_forwardMask) != 0;
|
||||
|
||||
Reference in New Issue
Block a user