fixed OFFSETS

This commit is contained in:
lindingerlu99122 committed 2026-11-18 15:59:23 +01:00
1 parent d879760bfa
commit 98c19e11f7
5 files changed
+491 -22

No files matched your search

+4 -4
View File
@@ -160,11 +160,11 @@ class DMXController:
self.set_channel(2, DEFAULT_TILT) # CH 2: Tilt (wie angefordert auf Channel 2)
self.set_channel(3, 0) # CH 3: Pan Fine
self.set_channel(4, 0) # CH 4: Tilt Fine
self.set_channel(5, 0) # CH 5: Speed (0 = schnellstmöglich)
self.set_channel(6, 0) # CH 6: Farbrad (Weiß)
self.set_channel(5, 10) # CH 5: Speed (0 = schnellstmöglich)
self.set_channel(6, 50) # CH 6: Farbrad (Weiß)
self.set_channel(7, 0) # CH 7: Gobo (Offen)
self.set_channel(8, 255) # CH 8: Dimmer (100%)
self.set_channel(9, 3) # CH 9: Shutter (Offen)
self.set_channel(9, 255) # CH 9: Shutter (Offen)
self.send()
def set_pan(self, val: int) -> None:
@@ -247,7 +247,7 @@ def calculate_tilt(x_m: float, y_m: float, z_m: float, ceiling_mode: bool = Fals
tilt_rad = math.atan2(-dy, dist_horiz)
tilt_deg = math.degrees(tilt_rad)
tilt_dmx = 40.5 + (tilt_deg / (TILT_RANGE_DEG / 2.0)) * 40.5
tilt_dmx = 127.5 + (tilt_deg / (TILT_RANGE_DEG / 2.0)) * 127.5
if ceiling_mode:
tilt_dmx = 255.0 - tilt_dmx