test moving head with both hands
This commit is contained in:
1 parent
c33628c230
commit
53fbca6f40
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user