Skip to content

Commit 372b84b

Browse files
Tweak microsaccade numbers & comment
1 parent b017102 commit 372b84b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

M4_Eyes/M4_Eyes.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ void loop() {
481481
if(dt >= eyeMoveDuration) { // Time up? Destination reached.
482482
eyeInMotion = false; // Stop moving
483483
// The "move" duration temporarily becomes a hold duration...
484-
eyeMoveDuration = random(30000, 1000000); // Time between microsaccades
484+
eyeMoveDuration = random(35000, 1000000); // Time between microsaccades
485485
if(!saccadeInterval) { // Cleared when "big" saccade finishes
486486
lastSaccadeStop = t; // Time when saccade stopped
487487
saccadeInterval = random(eyeMoveDuration, 3000000); // Next in 30ms to 3sec
@@ -510,16 +510,16 @@ void loop() {
510510
eyeMoveDuration = random(83000, 166000); // ~1/12 - ~1/6 sec
511511
saccadeInterval = 0; // Calc next interval when this one stops
512512
} else { // Microsaccade
513-
// r is possible radius of motion, 1/10 size of full saccade.
513+
// r is possible radius of motion, ~1/10 size of full saccade.
514514
// We don't bother with clipping because if it strays just a little,
515515
// that's okay, it'll get put in-bounds on next full saccade.
516516
float r = (float)mapDiameter - (float)DISPLAY_SIZE * M_PI_2;
517-
r *= 0.06;
517+
r *= 0.07;
518518
float dx = random(-r, r);
519519
eyeNewX = eyeX - mapRadius + dx;
520520
float h = sqrt(r * r - dx * dx);
521521
eyeNewY = eyeY - mapRadius + random(-h, h);
522-
eyeMoveDuration = random(6000, 25000); // 6-25 ms microsaccade
522+
eyeMoveDuration = random(7000, 25000); // 7-25 ms microsaccade
523523
}
524524
eyeNewX += mapRadius; // Translate new point into map space
525525
eyeNewY += mapRadius;

0 commit comments

Comments
 (0)