diff --git a/Moving_Head_Test/pan_tilt_combined.py b/Moving_Head_Test/pan_tilt_combined.py index 40c9aed..87b709f 100644 --- a/Moving_Head_Test/pan_tilt_combined.py +++ b/Moving_Head_Test/pan_tilt_combined.py @@ -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 = 127.5 + (tilt_deg / (TILT_RANGE_DEG / 2.0)) * 127.5 + tilt_dmx = 40.5 + (tilt_deg / (TILT_RANGE_DEG / 2.0)) * 40.5 if ceiling_mode: tilt_dmx = 255.0 - tilt_dmx