From 14ec86d885abd15b31caa45bd6c2294dd1df46e0 Mon Sep 17 00:00:00 2001 From: odri <odri@furano.laas.fr> Date: Fri, 1 Oct 2021 18:27:18 +0200 Subject: [PATCH] Add plot of loop time --- scripts/LoggerControl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/LoggerControl.py b/scripts/LoggerControl.py index 4b9ce720..64e04f76 100644 --- a/scripts/LoggerControl.py +++ b/scripts/LoggerControl.py @@ -650,6 +650,16 @@ class LoggerControl(): plt.ylabel("Time [s]") self.custom_suptitle("MPC solving time") + #### + # Step in system time at each loop + #### + plt.figure() + plt.plot(np.diff(self.tstamps)) + plt.legend(["System time step"]) + plt.xlabel("Loop []") + plt.ylabel("Time [s]") + self.custom_suptitle("System time step between 2 sucessive loops") + #### # Comparison of raw and filtered quantities (15 Hz and windowed) #### -- GitLab