From 2bfdd0d61db30cc5e97c144ce299bec81adc8144 Mon Sep 17 00:00:00 2001 From: Jason Young <46612682+jyoung8607@users.noreply.github.com> Date: Tue, 9 Sep 2025 18:02:31 -0400 Subject: [PATCH] PlotJuggler: Updated layout for torque controller (#36123) * PlotJuggler: Updated layout for torque controller * yeah, no --- pyproject.toml | 2 +- .../plotjuggler/layouts/torque-controller.xml | 255 +++++++++--------- 2 files changed, 131 insertions(+), 126 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 88c4d06739..1655b565e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -176,7 +176,7 @@ quiet-level = 3 # if you've got a short variable name that's getting flagged, add it here ignore-words-list = "bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup,bumb,nd,sie,preints,whit,indexIn,ws,uint,grey,deque,stdio,amin,BA,LITE,atEnd,UIs,errorString,arange,FocusIn,od,tim,relA,hist,copyable,jupyter,thead,TGE,abl,lite" builtin = "clear,rare,informal,code,names,en-GB_to_en-US" -skip = "./third_party/*, ./tinygrad/*, ./tinygrad_repo/*, ./msgq/*, ./panda/*, ./opendbc/*, ./opendbc_repo/*, ./rednose/*, ./rednose_repo/*, ./teleoprtc/*, ./teleoprtc_repo/*, *.ts, uv.lock, *.onnx, ./cereal/gen/*, */c_generated_code/*, docs/assets/*" +skip = "./third_party/*, ./tinygrad/*, ./tinygrad_repo/*, ./msgq/*, ./panda/*, ./opendbc/*, ./opendbc_repo/*, ./rednose/*, ./rednose_repo/*, ./teleoprtc/*, ./teleoprtc_repo/*, *.ts, uv.lock, *.onnx, ./cereal/gen/*, */c_generated_code/*, docs/assets/*, tools/plotjuggler/layouts/*" [tool.mypy] python_version = "3.11" diff --git a/tools/plotjuggler/layouts/torque-controller.xml b/tools/plotjuggler/layouts/torque-controller.xml index 606df03611..8e9a1a8526 100644 --- a/tools/plotjuggler/layouts/torque-controller.xml +++ b/tools/plotjuggler/layouts/torque-controller.xml @@ -1,193 +1,180 @@ - + - + - - + + - - + + - - + + - - + + - - + + - + - + - - + + - - + + - - - + + + - + - - - - + + + + - - - + + - - - + + + - - + + - - - + + + - - - + + - + - - - - + + + + - - + + + - - - + + + - - + + - - - + + + - - + + + - + - - - - + + + + - - - - - - - + - - - + + + - - - - + + + - - - + + + - + - + - - - - + + + + - - + + - - - + + + - - - + + + - + + - - - + + + - - - - - - + + + + - - - + + + - - - - - - + @@ -199,44 +186,62 @@ + + + + + + + + + + + + + - + - return (0) - /carState/canValid + return value * 3.6 + /carState/vEgo - + + + return value * 2.23694 + /carState/vEgo + + return (value * v1 ^ 2) - (v2 * 9.81) - /controlsState/curvature + /controlsState/desiredCurvature /carState/vEgo /liveParameters/roll - + return (value * v1 ^ 2) - (v2 * 9.81) - /controlsState/desiredCurvature + /controlsState/curvature /carState/vEgo /liveParameters/roll - + - return value * 2.23694 - /carState/vEgo + return value + 0.2 + /carParams/steerActuatorDelay - + - return value * 3.6 - /carState/vEgo + return (0) + /carState/canValid