From 781ee4e27a47db2c8f44109ec67021a1a790bb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ttger?= <sebastian.boettger@stud.hs-bochum.de> Date: Thu, 29 Jun 2023 15:44:17 +0200 Subject: [PATCH] Add plot of section type --- race_managment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/race_managment.py b/race_managment.py index ae80b8b..2db72bb 100644 --- a/race_managment.py +++ b/race_managment.py @@ -33,6 +33,7 @@ def main_loop(): # line plotter with time lp_v = Line_Plotter_Time("Linear speed", "s", "mm/s", 1000) lp_w = Line_Plotter_Time("Rotation speed", "s", "rad/s", 1000) + #lp_section_type = Line_Plotter_Time("Filtered rotation speed", "s", "current section type", 1000) # trackplotter background, track = Track_Plotter.get_set_of_trackparts_3() @@ -66,6 +67,7 @@ def main_loop(): # update line plotter lp_v.update(v,t) lp_w.update(w,t) + #lp_section_type.update(localizer.current_section_type if localizer.current_section_type is not None else 0, t) # get section type section_type,_,_,_ = driving_analyser.detect_section_type(w) @@ -95,6 +97,7 @@ def main_loop(): pass lp_w.close() lp_v.close() + #lp_section_type.close(); tp.close() -- GitLab