From 983d09c491efec69b1aa69d3085b79847d790ed9 Mon Sep 17 00:00:00 2001 From: Paul Guenette Date: Sat, 25 May 2019 20:50:21 +0200 Subject: [PATCH] Add missing encoder modes in odrivetool enum list --- tools/odrive/enums.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/odrive/enums.py b/tools/odrive/enums.py index 81f32570..17d26f9f 100644 --- a/tools/odrive/enums.py +++ b/tools/odrive/enums.py @@ -73,5 +73,8 @@ INPUT_MODE_POS_FILTER = 3 INPUT_MODE_MIX_CHANNELS = 4 INPUT_MODE_TRAP_TRAJ = 5 -ENCODER_MODE_INCREMENTAL = 0 -ENCODER_MODE_HALL = 1 +ENCODER_MODE_INCREMENTAL = 0x00 +ENCODER_MODE_HALL = 0x01 +ENCODER_MODE_SINCOS = 0x02 +ENCODER_MODE_SPI_ABS_CUI = 0x100 +ENCODER_MODE_SPI_ABS_AMS = 0x101