Eckrad kunktioniert

This commit is contained in:
Paul Wolok committed 2026-01-20 11:38:04 +01:00
1 parent edfb75778e
commit a5baccb40a
3 files changed
+102 -38

No files matched your search

+1 -1
View File
@@ -26,5 +26,5 @@ class Eckrad(BaseModel):
x = x,
y = y,
hoehe = hoehe,
drehung = drehung
drehrichtung = drehrichtung
)
+1 -1
View File
@@ -187,7 +187,7 @@ class Gefaellestrecke(BaseModel):
if rotation_zwischen == 0.0:
rotation_zwischen = -360.0
if (((-360.0<= rotation_zwischen< -270.0)and y > y_angetrieben_1) or ((-90.0< rotation< 0.0)and y > y_angetrieben_1) or
((-270.0< rotation_zwischen< -90.0)and y < y_angetrieben) or
((-270.0< rotation_zwischen< -90.0)and y < y_angetrieben_1) or
(rotation == -90.0 and x < x_angetrieben_1) or ((rotation == -270.0)and x<x_angetrieben_1)):
hat_umlenk_1 = True
umlenk_gerade = True