/** * Common relay initialization method. This code is common to all Relay constructors and * initializes the relay and reserves all resources that need to be locked. Initially the relay is * set to both lines at 0v. */ private void initRelay() { SensorBase.checkRelayChannel(m_channel); impl = new SimSpeedController("simulator/relay/" + m_channel); m_safetyHelper = new MotorSafetyHelper(this); m_safetyHelper.setSafetyEnabled(false); LiveWindow.addActuator("Relay", m_channel, this); }
/** * Common relay initialization method. This code is common to all Relay constructors and * initializes the relay and reserves all resources that need to be locked. Initially the relay is * set to both lines at 0v. */ private void initRelay() { SensorBase.checkRelayChannel(m_channel); impl = new SimSpeedController("simulator/relay/" + m_channel); LiveWindow.addActuator("Relay", m_channel, this); }