From 59e44bbe01e84ce0ead9b9fddcde8c6f82a95628 Mon Sep 17 00:00:00 2001 From: ConnorN Date: Sun, 12 Apr 2026 18:22:14 -0400 Subject: [PATCH] feat: motor currents for chassis --- src/components/panels/MotorStatusPanel.tsx | 24 ++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/components/panels/MotorStatusPanel.tsx b/src/components/panels/MotorStatusPanel.tsx index 9bdab32..ec3926a 100644 --- a/src/components/panels/MotorStatusPanel.tsx +++ b/src/components/panels/MotorStatusPanel.tsx @@ -11,10 +11,14 @@ type MotorStatus = { }; const MOTORS = { - fl: { label: 'FLeft', topic: '/frontLeft/status' }, - fr: { label: 'FRight', topic: '/frontRight/status' }, - rl: { label: 'BLeft', topic: '/backLeft/status' }, - rr: { label: 'BRight', topic: '/backRight/status' }, + fl_d: { label: 'FLeft_Drive', topic: '/Left_front_wheel_joint/status' }, + fr_d: { label: 'FRight_Drive', topic: '/Right_front_wheel_joint/status' }, + rl_d: { label: 'BLeft_Drive', topic: '/Left_back_wheel_joint/status' }, + rr_d: { label: 'BRight_Drive', topic: '/Right_back_wheel_joint/status' }, + fl_s: { label: 'FLeft_Steer', topic: '/Left_front_wheel_arm_joint/status' }, + fr_s: { label: 'FRight_Steer', topic: '/Right_front_wheel_arm_joint/status' }, + rl_s: { label: 'BLeft_Steer', topic: '/Left_back_wheel_arm_joint/status' }, + rr_s: { label: 'BRight_Steer', topic: '/Right_back_wheel_arm_joint/status' }, } as const; type MotorKey = keyof typeof MOTORS; @@ -25,10 +29,14 @@ const MotorStatusPanel: React.FC = () => { const [motorStats, setMotorStats] = useState< Record >({ - fl: null, - fr: null, - rl: null, - rr: null, + fl_d: null, + fr_d: null, + rl_d: null, + rr_d: null, + fl_s: null, + fr_s: null, + rl_s: null, + rr_s: null, }); useEffect(() => {