Good Day
I have created an internal sensor IS4 on my PanelPro layout diagram. I want this sensor to be set to INACTIVE on startup of JMRI. This sensor, when manually selected, will indicate the direction of travel on a bidirectional piece of track.
?
self.direction = sensors.provideSensor(¡°IS4¡±)
self.dirstate = self.direction.getKnownState()
print self.dirstate # this value is either 2 for ACTIVE or 4 for INACTIVE
?
How do I force the state of IS4 to INACTIVE on startup?
?
Derek.