diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-04-29 15:49:47 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-04-29 15:49:47 +0300 |
commit | 81a7c3d692f89da41fe8034d448771762b1fad3b (patch) | |
tree | 9bf59568c6289242aff9dd311efceca6ceaf035c | |
parent | d4ad8377decb4b59708eb4af07d3e79e5a4bc15f (diff) |
Adjusted FMDC sense resistor correction for more accurate motor current
-rw-r--r-- | src/Config/Pins_FMDC.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Config/Pins_FMDC.h b/src/Config/Pins_FMDC.h index 747756a8..168f9c46 100644 --- a/src/Config/Pins_FMDC.h +++ b/src/Config/Pins_FMDC.h @@ -155,7 +155,7 @@ constexpr uint8_t TMC22xxSercomRxPad = 1; constexpr uint32_t DriversBaudRate = 100000; // at 100kbaud a transfer may take up to 2ms constexpr uint32_t TransferTimeout = 6; // any transfer should complete within 6 ticks @ 1ms/tick. 5 wasn't quite enough. constexpr uint32_t DefaultStandstillCurrentPercent = 75; -constexpr float DriverSenseResistor = 0.056 + 0.02; // in ohms +constexpr float DriverSenseResistor = 0.056 + 0.02 + 0.012; // in ohms. The 0.012 is an additional correction for this board. constexpr float DriverVRef = 180.0; // in mV constexpr float DriverFullScaleCurrent = DriverVRef/DriverSenseResistor; // in mA |