Skip to content

Commit 1a038f6

Browse files
committed
Handle multiple orientation on replay timing
1 parent 1c139f1 commit 1a038f6

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

term_timer/solve.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,20 @@ def reconstruction_steps_timing(self):
690690
speed = self.move_speed / MS_TO_NS_FACTOR
691691

692692
timing = []
693-
previous_time = 0
694693
orientation_offset = 0
695694

696-
if self.orientation_moves:
697-
orientation_offset = int(
698-
self.orientation_moves.metrics['rtm'] * speed,
695+
for move in self.orientation_moves:
696+
time = int(speed * (1.6 if move.is_double else 1))
697+
timing.append(
698+
[
699+
orientation_offset,
700+
orientation_offset + time,
701+
move,
702+
],
699703
)
700-
timing.append([0, orientation_offset, str(self.orientation_moves)])
701-
previous_time = orientation_offset
704+
orientation_offset += time
705+
706+
previous_time = orientation_offset
702707

703708
full_algo = ''
704709
for info in self.method_applied.summary:

0 commit comments

Comments
 (0)