From b8f0f38b16c018e8af8c1984bea0e560da118939 Mon Sep 17 00:00:00 2001 From: iris Date: Thu, 20 Jun 2024 18:51:50 -0500 Subject: [PATCH] improve application update rate --- REVHubInterface/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/REVHubInterface/__main__.py b/REVHubInterface/__main__.py index 8e26121..90f619c 100644 --- a/REVHubInterface/__main__.py +++ b/REVHubInterface/__main__.py @@ -1021,7 +1021,7 @@ def on_connect_button_callback(self): frame.grid(row=motorNumber, column=moduleNumber, sticky=(N, S, E, W)) self.Motor_packs.append( dc_motor(frame, partial(self.speedMotorSlider, motorNumber=motorNumber, moduleNumber=moduleNumber), - partial(self.zeroMotorSpeed, motorNumber=motorNumber, moduleNumber=moduleNumber), + partial(self.speedMotorEntry, motorNumber=motorNumber, moduleNumber=moduleNumber), partial(self.javaMotorEntry, motorNumber=motorNumber, moduleNumber=moduleNumber))) self.Motor_packs[-1].Motor_pack.config( text='Module: ' + str(moduleNumber) + ' Motors: ' + str(motorNumber)) @@ -1144,7 +1144,7 @@ def on_quit_button_callback(self): def every_second(self): for func in self.repetitiveFunctions: func() - self.root.after(500, self.every_second) + self.root.after(250, self.every_second) def joinThreads(self): self.repetitiveFunctions = []