From 578cbd08e54d69b820dd3df5c4562d7f5aea4d09 Mon Sep 17 00:00:00 2001 From: pmantoine Date: Thu, 13 Oct 2022 09:12:51 +0800 Subject: [PATCH] SAMD21 senseFactor fix for 12-bit --- MotorDrivers.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MotorDrivers.h b/MotorDrivers.h index 3d3d297..7f217ce 100644 --- a/MotorDrivers.h +++ b/MotorDrivers.h @@ -1,5 +1,5 @@ /* - * © 2022 Paul M Antoine + * © 2022 Paul M. Antoine * © 2021 Fred Decker * © 2020-2022 Harald Barth * (c) 2020 Chris Harlow. All rights reserved. @@ -65,8 +65,8 @@ // 10-bit A/D samples, and for 12-bit samples it's more like 0.488, but we probably need // to tweak both these #define STANDARD_MOTOR_SHIELD F("STANDARD_MOTOR_SHIELD"), \ - new MotorDriver(3, 12, UNUSED_PIN, 9, A0, 1.95, 1500, UNUSED_PIN), \ - new MotorDriver(11, 13, UNUSED_PIN, 8, A1, 1.95, 1500, UNUSED_PIN) + new MotorDriver(3, 12, UNUSED_PIN, 9, A0, 0.488, 1500, UNUSED_PIN), \ + new MotorDriver(11, 13, UNUSED_PIN, 8, A1, 0.488, 1500, UNUSED_PIN) #define SAMD_STANDARD_MOTOR_SHIELD STANDARD_MOTOR_SHIELD #elif defined(ARDUINO_ARCH_ESP32)