diff --git a/rokae/aio/aio.py b/rokae/aio/aio.py index 690085f..8bb06cc 100644 --- a/rokae/aio/aio.py +++ b/rokae/aio/aio.py @@ -215,6 +215,7 @@ class App(customtkinter.CTk): def write2textbox(self, text, wait=0, exitcode=0): if wait != 0: + self.textbox.configure(text_color='blue') self.textbox.insert(index='end', text=text) self.textbox.update() self.textbox.see('end') @@ -225,6 +226,7 @@ class App(customtkinter.CTk): self.textbox.see('end') raise Exception(f"Error code: {exitcode}") else: + self.textbox.configure(text_color='blue') self.textbox.insert(index='end', text=text + '\n') self.textbox.update() self.textbox.see('end') diff --git a/rokae/aio/brake.py b/rokae/aio/brake.py index e7b836b..bdfce1d 100644 --- a/rokae/aio/brake.py +++ b/rokae/aio/brake.py @@ -226,7 +226,7 @@ def find_row_start(data_file, df, conditions, av, rr, axis, vel, w2t, rpm): threshold, step = get_threshold_step(data_file, axis) while row_start > step+1: - speed = df.iloc[row_start, vel-1] * rpm + speed = abs(df.iloc[row_start, vel-1] * rpm) if int(speed) < 1: row_start -= 50 continue