mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix: falloff code delete
This commit is contained in:
parent
b4d54fcb68
commit
6e847ff0fe
@ -45,13 +45,13 @@ def velocity_falloff(self, var, out_x, out_y):
|
||||
if self.eye_id == EyeId.RIGHT:
|
||||
var.r_eye_velocity = var.average_velocity
|
||||
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
|
||||
if dist > self.s = abs(
|
||||
np.sqrt(
|
||||
ettings.gui_eye_dominant_diff_thresh:
|
||||
if dist > self.settings.gui_eye_dominant_diff_thresh:
|
||||
falloff = True
|
||||
if (
|
||||
not self.settings.gui_left_eye_dominant
|
||||
|
||||
Loading…
Reference in New Issue
Block a user