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:
parent
512f6c86ad
commit
70ab8cb527
|
@ -181,8 +181,6 @@ class Sequence {
|
||||||
continue;
|
continue;
|
||||||
c = step.cmd;
|
c = step.cmd;
|
||||||
ms += timing.get(c);
|
ms += timing.get(c);
|
||||||
ms += cfg.arduino.serialDelay;
|
|
||||||
ms += cfg.arduino.sequenceDelay;
|
|
||||||
if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) {
|
if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) {
|
||||||
cam_total++;
|
cam_total++;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -215,8 +215,6 @@ class Sequence {
|
||||||
if (!step) continue
|
if (!step) continue
|
||||||
c = step.cmd;
|
c = step.cmd;
|
||||||
ms += timing.get(c);
|
ms += timing.get(c);
|
||||||
ms += cfg.arduino.serialDelay;
|
|
||||||
ms += cfg.arduino.sequenceDelay;
|
|
||||||
|
|
||||||
if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) {
|
if (c === cfg.cmd.camera_forward || c === cfg.cmd.black_forward) {
|
||||||
cam_total++;
|
cam_total++;
|
||||||
|
|
Loading…
Reference in New Issue