Fix kernel parameters

We did one the wrong way around and weren't safe enough with the other.

Contributes to issue CURA-5561.
This commit is contained in:
Ghostkeeper 2018-09-05 14:05:47 +02:00
parent 2cc3a593ef
commit 9a43ee4629
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -385,9 +385,9 @@ class CommandBuffer:
for cmd in self._all_commands: for cmd in self._all_commands:
if cmd.estimated_exec_time_in_ms >= 0: if cmd.estimated_exec_time_in_ms >= 0:
continue #Not a movement command. continue #Not a movement command.
kernel_commands[2] = kernel_commands[1] kernel_commands[0] = kernel_commands[1]
kernel_commands[1] = kernel_commands[0] kernel_commands[1] = kernel_commands[2]
kernel_commands[0] = cmd kernel_commands[2] = cmd
self.forward_pass_kernel(kernel_commands[0], kernel_commands[1], kernel_commands[2]) self.forward_pass_kernel(kernel_commands[0], kernel_commands[1], kernel_commands[2])
self.forward_pass_kernel(kernel_commands[1], kernel_commands[2], None) self.forward_pass_kernel(kernel_commands[1], kernel_commands[2], None)
@ -452,7 +452,7 @@ class CommandBuffer:
"time_in_ms": total_frame_time_in_ms}) "time_in_ms": total_frame_time_in_ms})
def reverse_pass_kernel(self, previous: Optional[Command], current: Optional[Command], next: Optional[Command]) -> None: def reverse_pass_kernel(self, previous: Optional[Command], current: Optional[Command], next: Optional[Command]) -> None:
if not previous: if not current or not next:
return return
#If entry speed is already at the maximum entry speed, no need to #If entry speed is already at the maximum entry speed, no need to