From 61c8933b51fce160b1ad6faa4f9433525fcc0cd4 Mon Sep 17 00:00:00 2001 From: Thomas Lambert <t.lambert@uliege.be> Date: Tue, 8 Nov 2022 19:43:46 +0100 Subject: [PATCH] fix: reorder encoder pins This reflects the proper wiring of the motors --- controller/controller.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/controller.ino b/controller/controller.ino index 8554f94..19cd986 100644 --- a/controller/controller.ino +++ b/controller/controller.ino @@ -33,7 +33,7 @@ Repo: https://gitlab.uliege.be/thlamb/mecharaptor-controller #define CLK_PIN 2 // Encoder CLK #define DO_PIN 8 // Encoder Digital Output #define CSN_PINS \ - { 3, 4, 5, 6 } // Encoder Chip Select pins + { 6, 5, 4, 3 } // Encoder Chip Select pins #define CUR1_PIN A1 // Current measurement for Front motor #define CUR2_PIN A2 // Current measurement for Aft motor -- GitLab