fix: falloff code delete

This commit is contained in:
Prohurtz 2023-11-20 13:26:40 -06:00
parent b4d54fcb68
commit 6e847ff0fe

View File

@ -45,13 +45,13 @@ def velocity_falloff(self, var, out_x, out_y):
if self.eye_id == EyeId.RIGHT: if self.eye_id == EyeId.RIGHT:
var.r_eye_velocity = var.average_velocity var.r_eye_velocity = var.average_velocity
if self.settings.gui_outer_side_falloff: if self.settings.gui_outer_side_falloff:
dist abs(np.square(var.l_eye_x - out_x) - np.square(var.left_y - out_y)) dist = abs(
np.sqrt(
abs(np.square(var.l_eye_x - out_x) - np.square(var.left_y - out_y))
) )
) )
# print(dist, "r") # TODO remove once testing is done # print(dist, "r") # TODO remove once testing is done
if dist > self.s = abs( if dist > self.settings.gui_eye_dominant_diff_thresh:
np.sqrt(
ettings.gui_eye_dominant_diff_thresh:
falloff = True falloff = True
if ( if (
not self.settings.gui_left_eye_dominant not self.settings.gui_left_eye_dominant