From d83a439d815251ccd8c9428ede9cd996068222eb Mon Sep 17 00:00:00 2001 From: Piotr Kilczuk Date: Sat, 27 Feb 2016 19:54:45 +0000 Subject: [PATCH] Class 319 support --- README.rst | 1 + dsd/machine.py | 1 + dsd/machine_models.py | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/README.rst b/README.rst index 322bb0b..41aa6d7 100644 --- a/README.rst +++ b/README.rst @@ -23,6 +23,7 @@ Supported traction * Class 156 * Class 220 (JustTrains version) * Class 221 (JustTrains version) +* Class 319 * Class 360 * Class 377 (Southern version) * Class 378 diff --git a/dsd/machine.py b/dsd/machine.py index 8ba4437..ffb9f6d 100644 --- a/dsd/machine.py +++ b/dsd/machine.py @@ -39,6 +39,7 @@ 'RSC.Class47Pack01': models.Class43JT_47_DSDModel, 'RSC.Class66Pack02': models.Class66APDSDModel, 'RSC.Class70Pack01': models.GenericDSDModel, + 'RSC.Class319Pack01': models.Class319DSDModel, 'RSC.Class421Pack01': models.GenericDSDModel, 'RSC.Class421Pack02': models.GenericDSDModel, 'RSC.Class422Pack01': models.GenericDSDModel, diff --git a/dsd/machine_models.py b/dsd/machine_models.py index ad05019..d58be7e 100644 --- a/dsd/machine_models.py +++ b/dsd/machine_models.py @@ -188,6 +188,12 @@ class Class220_221DSDModel(BuiltinDSDIsolationMixin, BaseDSDModel): ] +class Class319DSDModel(BuiltinDSDIsolationMixin, BaseDSDModel): + + dsd_controller_name = 'DSDIsolate' + dsd_controller_value = 1 + + class Class360DSDModel(FauxControllerMovementMixin, BaseDSDModel): important_controls = [