mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 08:04:57 +01:00
feat: ET22 louvre lamp, lit until the main reservoir opens the louvres (eu07/maszyna#451)
The ET22 cab binds its louvre lamp to i-voltbrake: (voltage on the brake controller) as a stand-in. The real lamp goes out once the main compressors have filled the main reservoir to about 5 bar and the pneumatic louvres of the motor fans open. - New optional lamp i-louvresclosed:, lit (with low voltage power) while the main reservoir pressure is below LouvresOpenPressure. - New optional Cntrl. key LouvresOpenPressure [bar], 5.0 by default, so the .mmd change alone is enough. - i-vent_trim: (btLampkaWentZaluzje, never driven) is left alone, because the WMB10 binds it and would suddenly light up. SVN data, to change once this is released (old data works as before): - dynamic/pkp/et22_v3/201eo.mmd.inc, 201eo_160ec.mmd.inc, 201ek.mmd: i-voltbrake: lampka_zaluzje -> i-louvresclosed: lampka_zaluzje - dynamic/pkp/et22-2000_v2/201em.mmd: i-voltbrake: zaluzje -> i-louvresclosed: zaluzje (eu07/maszyna#451)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
// the line contactors interlocked with the fans of the traction motors (eu07/maszyna#460): on the ET42 the fans of a
|
||||
// section run off its own converter, and with them switched off the line contactors of that section don't close.
|
||||
// the louvres of the fans of the ET22 open with the air of the main reservoir (eu07/maszyna#451)
|
||||
|
||||
using test::definition;
|
||||
using test::vehicle;
|
||||
@@ -108,3 +109,18 @@ TEST_CASE("line contactors interlock: the ET42 section with its fans switched of
|
||||
CHECK_FALSE(rear.StLinFlag);
|
||||
CHECK(front.StLinFlag);
|
||||
}
|
||||
|
||||
TEST_CASE("louvres: closed until the main reservoir reaches the pressure that opens them") {
|
||||
vehicle et22{definition::fiz("et22_v3/201e-w")};
|
||||
CHECK(et22->LouvresOpenPressure == doctest::Approx(5.0)); // by default
|
||||
et22->Compressor = 4.9;
|
||||
CHECK(et22->LouvresClosed());
|
||||
et22->Compressor = 5.0;
|
||||
CHECK_FALSE(et22->LouvresClosed());
|
||||
|
||||
vehicle given{definition::fiz("et22_v3/201e-w").set("Cntrl", "LouvresOpenPressure", 4.0)};
|
||||
given->Compressor = 4.5;
|
||||
CHECK_FALSE(given->LouvresClosed());
|
||||
given->Compressor = 3.9;
|
||||
CHECK(given->LouvresClosed());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user