Initialisation depot

This commit is contained in:
Serge NOEL
2026-06-17 14:00:51 +02:00
commit efdf1683af
33190 changed files with 5907629 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# Test the PowerSensor.py script
execfile("jython/PowerSensor.py")
# check that power drives sensor 100
powermanager.setPower(jmri.PowerManager.OFF)
if (sensors.getSensor("100").getState() != INACTIVE) : raise AssertionError('Set OFF did not set INACTIVE')
powermanager.setPower(jmri.PowerManager.ON)
if (sensors.getSensor("100").getState() != ACTIVE) : raise AssertionError('Set ON did not set ACTIVE')
powermanager.setPower(jmri.PowerManager.OFF)
if (sensors.getSensor("100").getState() != INACTIVE) : raise AssertionError('2nd set OFF did not set INACTIVE')