From bd80d18254c9dddd742140017429c1c815859ea3 Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Fri, 3 Sep 2021 15:41:31 +0200 Subject: [PATCH] update CAN test --- tools/odrive/tests/can_test.py | 2 +- tools/test-rig-ss3.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/odrive/tests/can_test.py b/tools/odrive/tests/can_test.py index 8656e45d..0b060428 100644 --- a/tools/odrive/tests/can_test.py +++ b/tools/odrive/tests/can_test.py @@ -14,7 +14,7 @@ from test_runner import * # Each argument is described as tuple (name, format, scale). # Struct format codes: https://docs.python.org/2/library/struct.html command_set = { - 'heartbeat': (0x001, [('error', 'I', 1), ('current_state', 'I', 1)]), # tested + 'heartbeat': (0x001, [('error', 'I', 1), ('current_state', 'B', 1), ('reserved', 'H', 1), ('controller_state', 'B', 1)]), # tested 'estop': (0x002, []), # tested 'get_motor_error': (0x003, [('motor_error', 'I', 1)]), # untested 'get_encoder_error': (0x004, [('encoder_error', 'I', 1)]), # untested diff --git a/tools/test-rig-ss3.yaml b/tools/test-rig-ss3.yaml index 8329abda..9f4e28a9 100644 --- a/tools/test-rig-ss3.yaml +++ b/tools/test-rig-ss3.yaml @@ -26,7 +26,7 @@ components: - type: odrive name: odrive board-version: v3.6-56V - serial-number: "20703595524B" + serial-number: "206839975453" brake-resistance: 2.0 usb: auto can: main_canbus