Improve timing. Sequence takes into account serialDelay within each command and sequenceDelay has no bearing. Was adding 120ms of error to every step

This commit is contained in:
Matt McWilliams 2023-03-01 13:37:22 -05:00
parent 512f6c86ad
commit 70ab8cb527
3 changed files with 1 additions and 5 deletions

View File

@ -181,8 +181,6 @@ class Sequence {
continue;
c = step.cmd;
ms += timing.get(c);
ms += cfg.arduino.serialDelay;
ms += cfg.arduino.sequenceDelay;
if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) {
cam_total++;
}

File diff suppressed because one or more lines are too long

View File

@ -215,8 +215,6 @@ class Sequence {
if (!step) continue
c = step.cmd;
ms += timing.get(c);
ms += cfg.arduino.serialDelay;
ms += cfg.arduino.sequenceDelay;
if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) {
cam_total++;